From ed4a30f4d4d309aed90bba92ebe24f170ef5d7e0 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Thu, 21 Oct 2021 20:48:28 +0100 Subject: [PATCH] chore: Add typing for StorybookConfig.refs --- lib/core-common/src/types.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/core-common/src/types.ts b/lib/core-common/src/types.ts index aa21e92f3ff..cb761673ccd 100644 --- a/lib/core-common/src/types.ts +++ b/lib/core-common/src/types.ts @@ -261,6 +261,11 @@ export type Preset = */ export type Entry = string; +type StorybookRefs = Record; + /** * The interface for Storybook configuration in `main.ts` files. */ @@ -329,6 +334,11 @@ export interface StorybookConfig { */ typescript?: Partial; + /** + * References external Storybooks + */ + refs: StorybookRefs | ((config: Configuration, options: Options) => StorybookRefs) + /** * Modify or return a custom Webpack config. */