From fba9b04a12295d566e9549f14355c3d14eb1bc74 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 21 Feb 2021 15:04:28 -0500 Subject: [PATCH] chore: allow custom document fields --- core/core/src/document.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core/src/document.ts b/core/core/src/document.ts index c1119be0f..7546a43f8 100644 --- a/core/core/src/document.ts +++ b/core/core/src/document.ts @@ -276,6 +276,10 @@ export type Document = { * storybook compatibility field */ parameters?: any; + /** + * custom document props + */ + [key: string]: any; } & StoryProps & PageLayoutProps; export const dateToLocalString = (date?: Date): string =>