From 6cb72eb13135f4bbb5970dcac2df4dd5d2d6af01 Mon Sep 17 00:00:00 2001 From: Jon Palmer Date: Thu, 26 Dec 2019 23:19:04 -0500 Subject: [PATCH] cleanup --- app/server/src/client/preview/index.ts | 7 +------ app/server/src/client/preview/types.ts | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/server/src/client/preview/index.ts b/app/server/src/client/preview/index.ts index b8fcb3225399..3a40f147a589 100644 --- a/app/server/src/client/preview/index.ts +++ b/app/server/src/client/preview/index.ts @@ -4,12 +4,7 @@ import { ClientStoryApi, Loadable } from '@storybook/addons'; import './globals'; import render, { setFetchStoryHtml } from './render'; -import { - StoryFnServerReturnType, - IStorybookSection, - FetchStoryHtmlType, - ConfigureOptionsArgs, -} from './types'; +import { StoryFnServerReturnType, IStorybookSection, ConfigureOptionsArgs } from './types'; const framework = 'server'; diff --git a/app/server/src/client/preview/types.ts b/app/server/src/client/preview/types.ts index e33e686a8e5e..4b267c0256dc 100644 --- a/app/server/src/client/preview/types.ts +++ b/app/server/src/client/preview/types.ts @@ -19,6 +19,10 @@ export interface ShowErrorArgs { description: string; } +export interface ConfigureOptionsArgs { + fetchStoryHtml: FetchStoryHtmlType; +} + export interface RenderMainArgs { storyFn: () => StoryFn; id: string;