mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #31547 from DefinitelyTyped/sandersn-trivial-edit-storybook
Trivial edit to storybook/add on-storyshots
This commit is contained in:
+2
-2
@@ -14,13 +14,13 @@ export type Test = (options: {
|
||||
renderShallowTree: RenderTree;
|
||||
renderTree: RenderTree;
|
||||
snapshotFileName: string;
|
||||
}) => void | undefined | Promise<void>;
|
||||
}) => undefined | void | Promise<void>;
|
||||
|
||||
export type RenderTree = (
|
||||
story: StoryObject,
|
||||
context: StoryContext,
|
||||
options?: SnapshotOptions
|
||||
) => void | undefined | Promise<void>;
|
||||
) => undefined | void | Promise<void>;
|
||||
|
||||
export interface SnapshotOptions {
|
||||
createNodeMock?: (element: any) => any;
|
||||
|
||||
Reference in New Issue
Block a user