storybook/lib/cli/src/window.d.ts
Gaëtan Maisse 5860974137
refactor(cli): improve typing of window
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
2020-05-17 17:08:00 +02:00

8 lines
140 B
TypeScript

import { StoryStore } from '@storybook/client-api';
declare global {
interface Window {
__STORYBOOK_STORY_STORE__: StoryStore;
}
}