@dr.pogodin/react-utils
Version:
Collection of generic ReactJS components and utils
18 lines (15 loc) • 486 B
text/typescript
import type { IFs } from 'memfs';
import type { Configuration, StatsCompilation } from 'webpack';
declare global {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Window {
ssrMarkup: string | undefined;
ssrStatus: number | undefined;
webpackConfig: Configuration | undefined;
webpackOutputFs: IFs;
webpackStats?: StatsCompilation;
}
}
export default function getGlobal(): Window {
return global as unknown as Window;
}