mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
ignore error
This commit is contained in:
parent
807c0c994c
commit
bf12d25439
@ -9,7 +9,6 @@ import { expectTypeOf } from 'expect-type';
|
||||
import type { Meta } from '../..';
|
||||
import { composeStories, composeStory, setProjectAnnotations } from '../../portable-stories';
|
||||
import * as stories from './Button.stories';
|
||||
// import type Button from './Button.svelte';
|
||||
import type Button from './Button.svelte';
|
||||
|
||||
setProjectAnnotations([]);
|
||||
@ -153,12 +152,9 @@ describe('ComposeStories types', () => {
|
||||
|
||||
expectTypeOf({
|
||||
...stories,
|
||||
|
||||
/**
|
||||
* Types of property 'argTypes' are incompatible. Type '{ backgroundColor: { control: string;
|
||||
* }; size: { control: { type: string; }; options: string[]; }; }' has no properties in common
|
||||
* with type 'Partial<ArgTypes<ComponentType>>'.
|
||||
*/
|
||||
// TODO: @JReinhold maybe you can figure this error out?
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore-error (Type 'IsomorphicComponent<PropsWithChildren<{ primary?: boolean | undefined; backgroundColor?: string | undefined; size?: "small" | "medium" | "large" | undefined; label?: string | undefined; }, { default: {}; }>, { ...; } & { ...; }, { ...; }, {}, string>' has no properties in common with type 'PropsWithChildren<{ primary?: boolean | undefined; backgroundColor?: string | undefined; size?: "small" | "medium" | "large" | undefined; label?: string | undefined; }, { default: {}; }>'. )
|
||||
default: stories.default satisfies Meta<typeof Button>,
|
||||
}).toMatchTypeOf<ComposeStoriesParam>();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user