ignore error

This commit is contained in:
Norbert de Langen 2025-02-26 17:29:28 +01:00
parent 807c0c994c
commit bf12d25439

View File

@ -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>();
});