Add reference to webpack types

This commit is contained in:
Ian VanSchooten 2022-09-26 21:45:36 -04:00
parent 34b5cd57c4
commit 6b8a0bba79
8 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
import type { AnyFramework, DecoratorFunction } from '@storybook/csf';
import deprecate from 'util-deprecate';
import { dedent } from 'ts-dedent';

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
export * from './constants';
export * from './models';
export * from './preview';

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
if (module && module.hot && module.hot.decline) {
module.hot.decline();
}

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
import { addons } from '@storybook/addons';
import { normalize, sep } from 'upath';
import { ADD_TESTS, defineJestParameter } from './shared';

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
import { dedent } from 'ts-dedent';
let hasWarned = false;

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
if (module && module.hot && module.hot.decline) {
module.hot.decline();
}

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
if (module && module.hot && module.hot.decline) {
module.hot.decline();
}

View File

@ -1,3 +1,5 @@
/// <reference types="webpack-env" />
import { ADDON_ID, PANEL_ID } from './events';
export { ADDON_ID, PANEL_ID };