-
Notifications
You must be signed in to change notification settings - Fork 11
/
storybook__ember.d.ts
51 lines (44 loc) · 1.36 KB
/
storybook__ember.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare module '@storybook/ember' {
import type {
AnnotatedStoryFn,
Args,
ComponentAnnotations,
StoryAnnotations,
WebRenderer,
StorybookConfig,
} from '@storybook/types';
export type {
Args,
ArgTypes,
Parameters,
StrictArgs,
} from '@storybook/types';
interface OptionsArgs {
template: unknown;
context?: unknown;
element?: unknown;
}
export interface EmberStoryBookConfig extends StorybookConfig {}
export interface EmberRenderer extends WebRenderer {
component: unknown;
storyResult: OptionsArgs;
}
/**
* Metadata to configure the stories for a component.
*
* @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
*/
export type Meta<TArgs = Args> = ComponentAnnotations<EmberRenderer, TArgs>;
/**
* Story function that represents a CSFv2 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
export type StoryFn<TArgs = Args> = AnnotatedStoryFn<EmberRenderer, TArgs>;
/**
* Story object that represents a CSFv3 component example.
*
* @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
*/
export type StoryObj<TArgs = Args> = StoryAnnotations<EmberRenderer, TArgs>;
}