@storybook/types 7.0.19 → 7.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1588,7 +1588,7 @@ type Addon_LoadFn = () => any;
1588
1588
  type Addon_RequireContext = any;
1589
1589
  type Addon_Loadable = Addon_RequireContext | [Addon_RequireContext] | Addon_LoadFn;
1590
1590
  type Addon_BaseDecorators<StoryFnReturnType> = Array<(story: () => StoryFnReturnType, context: Addon_StoryContext) => StoryFnReturnType>;
1591
- interface Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
1591
+ interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Renderer = Renderer> {
1592
1592
  /**
1593
1593
  * Dynamic data that are provided (and possibly updated by) Storybook and its addons.
1594
1594
  * @see [Arg story inputs](https://storybook.js.org/docs/react/api/csf#args-story-inputs)
@@ -1614,11 +1614,11 @@ interface Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
1614
1614
  /**
1615
1615
  * Define a custom render function for the story(ies). If not passed, a default render function by the framework will be used.
1616
1616
  */
1617
- render?: (args: TArgs, context: Addon_StoryContext) => StoryFnReturnType;
1617
+ render?: (args: TArgs, context: Addon_StoryContext<TRenderer>) => StoryFnReturnType;
1618
1618
  /**
1619
1619
  * Function that is executed after the story is rendered.
1620
1620
  */
1621
- play?: (context: Addon_StoryContext) => Promise<void> | void;
1621
+ play?: (context: Addon_StoryContext<TRenderer>) => Promise<void> | void;
1622
1622
  }
1623
1623
  interface Addon_Annotations<TArgs, StoryFnReturnType> extends Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
1624
1624
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/types",
3
- "version": "7.0.19",
3
+ "version": "7.0.20",
4
4
  "description": "Core Storybook TS Types",
5
5
  "keywords": [
6
6
  "storybook"
@@ -43,7 +43,7 @@
43
43
  "prep": "../../../scripts/prepare/bundle.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@storybook/channels": "7.0.19",
46
+ "@storybook/channels": "7.0.20",
47
47
  "@types/babel__core": "^7.0.0",
48
48
  "@types/express": "^4.7.0",
49
49
  "file-system-cache": "^2.0.0"
@@ -61,5 +61,5 @@
61
61
  "./src/index.ts"
62
62
  ]
63
63
  },
64
- "gitHead": "245bae01c81d87eeadf74886167507fcea16369c"
64
+ "gitHead": "9fb2573aa274f3f69d3358050e8df9c903e8245f"
65
65
  }