mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
In order to be able to extend types in global scope with an `import` at the top of the file we have to create a new dedicated file (and can not use already existing typings.d.ts). For details, see https://stackoverflow.com/questions/30960386/how-to-extend-the-window-typescript-interface/30961346#30961346
8 lines
140 B
TypeScript
8 lines
140 B
TypeScript
import { StoryStore } from '@storybook/client-api';
|
|
|
|
declare global {
|
|
interface Window {
|
|
__STORYBOOK_STORY_STORE__: StoryStore;
|
|
}
|
|
}
|