Allow mount to be implemented by a renderer #105
Annotations
10 errors and 1 warning
src/story.test.ts#L47
Property 'mount' is missing in type '{ title: string; component: (props: ButtonArgs) => string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { [x: string]: any; }>, context: StoryContext<...>) => string)[]; ... 4 more ...; argTypes: { ...; }; }' but required in type 'ComponentAnnotations<XRenderer, Args>'.
|
src/story.test.ts#L62
Property 'mount' is missing in type '{ title: string; component: (props: ButtonArgs) => string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { x: string; y: string; }>, context: StoryContext<...>) => string)[]; ... 4 more ...; argTypes: { ...; }; }' but required in type 'ComponentAnnotations<XRenderer, ButtonArgs>'.
|
src/story.test.ts#L78
Property 'mount' is missing in type '{ title: string; component: (props: ButtonArgs) => string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { x: string; y: string; }>, context: StoryContext<...>) => string)[]; parameters: { ...; }; loaders: (() => Promise<...>)[]; args: { ...; }; argTypes: { ...; }; }' but required in type 'ComponentAnnotations<XRenderer, ButtonArgs>'.
|
src/story.test.ts#L97
Type '() => string' is not assignable to type 'XStory<Args>'.
|
src/story.test.ts#L99
Type '{ (): string; story: Omit<StoryAnnotations<XRenderer, Args, Partial<Args>>, "story"> | undefined; }' is not assignable to type 'XStory<Args>'.
|
src/story.test.ts#L100
Property 'mount' is missing in type '{ name: string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { [x: string]: any; }>) => string)[]; parameters: { a: (string | number | {})[]; b: undefined; c: (props: ButtonArgs) => string; }; loaders: (() => Promise<...>)[]; beforeEach(): Promise<...>; args: { ...; }; }' but required in type 'Omit<StoryAnnotations<XRenderer, Args, Partial<Args>>, "story">'.
|
src/story.test.ts#L113
Type '{ (): string; storyName: string | undefined; tags: string[] | undefined; decorators: DecoratorFunction<XRenderer, { [x: string]: any; }> | DecoratorFunction<XRenderer, { [x: string]: any; }>[] | undefined; parameters: Parameters | undefined; loaders: LoaderFunction<...> | ... 1 more ... | undefined; args: Partial<.....' is not assignable to type 'XStory<Args>'.
|
src/story.test.ts#L121
Type '{ render: (args: Args) => string; name: string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { [x: string]: any; }>) => string)[]; parameters: { ...; }; loaders: (() => Promise<...>)[]; args: { ...; }; }' is not assignable to type 'XStory<Args>'.
|
src/story.test.ts#L131
Type '{ render: (args: ButtonArgs) => string; name: string; tags: string[]; decorators: ((storyFn: PartialStoryFn<XRenderer, { x: string; y: string; }>) => string)[]; parameters: { ...; }; loaders: (() => Promise<...>)[]; args: { ...; }; play: ({ step, canvasElement }: PlayFunctionContext<...>) => Promise<...>; }' is not assignable to type 'XStory<ButtonArgs>'.
|
src/story.test.ts#L146
Property 'mount' is missing in type '{ runStep(label: string, play: PlayFunction<XRenderer, Args>, context: StoryContext<XRenderer, Args>): Promise<...>; }' but required in type 'ProjectAnnotations<XRenderer, Args>'.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading