@storybook/types 7.1.0-alpha.25 → 7.1.0-alpha.26
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.
- package/dist/index.d.ts +3 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1592,7 +1592,7 @@ type Addon_LoadFn = () => any;
|
|
|
1592
1592
|
type Addon_RequireContext = any;
|
|
1593
1593
|
type Addon_Loadable = Addon_RequireContext | [Addon_RequireContext] | Addon_LoadFn;
|
|
1594
1594
|
type Addon_BaseDecorators<StoryFnReturnType> = Array<(story: () => StoryFnReturnType, context: Addon_StoryContext) => StoryFnReturnType>;
|
|
1595
|
-
interface Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
|
|
1595
|
+
interface Addon_BaseAnnotations<TArgs, StoryFnReturnType, TRenderer extends Renderer = Renderer> {
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Dynamic data that are provided (and possibly updated by) Storybook and its addons.
|
|
1598
1598
|
* @see [Arg story inputs](https://storybook.js.org/docs/react/api/csf#args-story-inputs)
|
|
@@ -1618,11 +1618,11 @@ interface Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
|
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Define a custom render function for the story(ies). If not passed, a default render function by the framework will be used.
|
|
1620
1620
|
*/
|
|
1621
|
-
render?: (args: TArgs, context: Addon_StoryContext) => StoryFnReturnType;
|
|
1621
|
+
render?: (args: TArgs, context: Addon_StoryContext<TRenderer>) => StoryFnReturnType;
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Function that is executed after the story is rendered.
|
|
1624
1624
|
*/
|
|
1625
|
-
play?: (context: Addon_StoryContext) => Promise<void> | void;
|
|
1625
|
+
play?: (context: Addon_StoryContext<TRenderer>) => Promise<void> | void;
|
|
1626
1626
|
}
|
|
1627
1627
|
interface Addon_Annotations<TArgs, StoryFnReturnType> extends Addon_BaseAnnotations<TArgs, StoryFnReturnType> {
|
|
1628
1628
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/types",
|
|
3
|
-
"version": "7.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.26",
|
|
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.1.0-alpha.
|
|
46
|
+
"@storybook/channels": "7.1.0-alpha.26",
|
|
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": "
|
|
64
|
+
"gitHead": "515abaa55abc8ad20f906e4ce46cde3d3850991e"
|
|
65
65
|
}
|