@storybook/csf 0.0.2--canary.57.a8fc7a0.0 → 0.0.2--canary.60.011a95e.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  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;
@@ -254,7 +254,7 @@ interface ComponentAnnotations<TRenderer extends Renderer = Renderer, TArgs = Ar
254
254
  * Used by addons for automatic prop table generation and display of other component metadata.
255
255
  */
256
256
  component?: (TRenderer & {
257
- T: Args extends TArgs ? any : TArgs;
257
+ T: Record<string, unknown> extends Required<TArgs> ? any : TArgs;
258
258
  })['component'];
259
259
  /**
260
260
  * Auxiliary subcomponents that are part of the stories.
@@ -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>> : unknown;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.0.2--canary.57.a8fc7a0.0",
3
+ "version": "0.0.2--canary.60.011a95e.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",