Skip to content

Commit

Permalink
chore: allow custom document fields
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 21, 2021
1 parent 28b6fff commit fba9b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/core/src/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ export type Document<Props = unknown> = {
* storybook compatibility field
*/
parameters?: any;
/**
* custom document props
*/
[key: string]: any;
} & StoryProps<Props> &
PageLayoutProps;
export const dateToLocalString = (date?: Date): string =>
Expand Down

0 comments on commit fba9b04

Please sign in to comment.