Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into preview-web-dep-6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Aug 31, 2022
2 parents 691bfa1 + b63d349 commit fed59c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/lib/core-common/src/types.ts
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, options: Options) => string;

previewBody?: (body: string, options: Options) => string;
}

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

0 comments on commit fed59c8

Please sign in to comment.