Skip to content

Commit

Permalink
fix: add previewHead and previewBody to StorybookConfig interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Aug 29, 2022
1 parent bbc0e82 commit 5782f00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/lib/core-common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ export interface StorybookConfig {
* Docs related features in index generation
*/
docs?: DocsOptions;

/**
* Programmatically modify the preview head/body HTML.
* The previewHead and previewBody functions accept a string,
* which is the existing head/body, and return a modified string.
*/
previewHead: (head?: string) => string;

previewBody: (body?: string) => string;
}

export type PresetProperty<K, TStorybookConfig = StorybookConfig> =
Expand Down

0 comments on commit 5782f00

Please sign in to comment.