@storybook/csf 0.0.2--canary.57.a8fc7a0.0 → 0.0.2--canary.58.7052fb8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Simplify, UnionToIntersection } from 'type-fest';
|
1
|
+
import { Simplify, RemoveIndexSignature, UnionToIntersection } from 'type-fest';
|
2
2
|
|
3
3
|
interface SBBaseType {
|
4
4
|
required?: boolean;
|
@@ -313,7 +313,7 @@ declare type ArgsFromMeta<TRenderer extends Renderer, Meta> = Meta extends {
|
|
313
313
|
render?: ArgsStoryFn<TRenderer, infer RArgs>;
|
314
314
|
loaders?: (infer Loaders)[];
|
315
315
|
decorators?: (infer Decorators)[];
|
316
|
-
} ? Simplify<RArgs & DecoratorsArgs<TRenderer, Decorators> & LoaderArgs<TRenderer, Loaders
|
316
|
+
} ? Simplify<RemoveIndexSignature<RArgs & DecoratorsArgs<TRenderer, Decorators> & LoaderArgs<TRenderer, Loaders>>> : unknown;
|
317
317
|
declare type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersection<Decorators extends DecoratorFunction<TRenderer, infer TArgs> ? TArgs : unknown>;
|
318
318
|
declare type LoaderArgs<TRenderer extends Renderer, Loaders> = UnionToIntersection<Loaders extends LoaderFunction<TRenderer, infer TArgs> ? TArgs : unknown>;
|
319
319
|
|