diff --git a/types/storybook__addon-storyshots/index.d.ts b/types/storybook__addon-storyshots/index.d.ts index 289efcf33c..e703f374da 100644 --- a/types/storybook__addon-storyshots/index.d.ts +++ b/types/storybook__addon-storyshots/index.d.ts @@ -16,9 +16,11 @@ export type Test = (options: { snapshotFileName: string; }) => void | undefined | Promise; -export interface RenderTree { - (story: StoryObject, context: StoryContext, options?: SnapshotOptions): void | undefined | Promise; -} +export type RenderTree = ( + story: StoryObject, + context: StoryContext, + options?: SnapshotOptions +) => void | undefined | Promise; export interface SnapshotOptions { createNodeMock?: (element: any) => any; @@ -58,6 +60,7 @@ export const renderOnly: Test; export function getSnapshotFileName(context: StoryContext): string; +// tslint:disable-next-line no-unnecessary-generics export default function initStoryshots(options: InitOptions): void; export interface InitOptions {