/// /** * Generic typings for sass files. */ declare module '*.scss' { const styles: { [className: string]: string }; export default styles; } // These declarations are meant to represent the parts of Map/WeakMap/Set that exist in IE 11. // Therefore, some functionality (such as constructor parameters) is intentionally missing. /** Partial Map interface representing what's available in IE 11 */ declare interface Map { readonly size: number; clear(): void; delete(key: K): boolean; forEach(callbackfn: (value: V, key: K, map: Map) => void, thisArg?: any): void; get(key: K): V | undefined; has(key: K): boolean; /** WARNING: In IE 11, this method returns undefined rather than `this` */ set(key: K, value: V): this; } declare interface MapConstructor { /** Map constructor. Does not accept parameters in IE 11. */ new (): Map; } /** Partial Map constructor representing what's available in IE 11 */ declare var Map: MapConstructor; /** Partial WeakMap interface representing what's available in IE 11 */ declare interface WeakMap { delete(key: K): boolean; get(key: K): V | undefined; has(key: K): boolean; /** WARNING: In IE 11, this method returns undefined rather than `this` */ set(key: K, value: V): this; } declare interface WeakMapConstructor { /** WeakMap constructor. Does not accept parameters in IE 11. */ new (): WeakMap; } /** Partial WeakMap constructor representing what's available in IE 11 */ declare var WeakMap: WeakMapConstructor; /** Partial Set interface representing what's available in IE 11 */ declare interface Set { readonly size: number; /** WARNING: In IE 11, this method returns undefined rather than `this` */ add(value: T): this; clear(): void; delete(value: T): boolean; forEach(callbackfn: (value: T, value2: T, set: Set) => void, thisArg?: any): void; has(value: T): boolean; } declare interface SetConstructor { /** Set constructor. Does not accept parameters in IE 11. */ new (): Set; } /** Partial Set constructor representing what's available in IE 11 */ declare var Set: SetConstructor; declare namespace NodeJS { interface Process extends __WebpackModuleApi.NodeProcess { env: { // This is mainly so we can do `process.env.NODE_ENV` checks without any extra conditionals. // // By default, webpack will (at compile time) replace instances of `process.env.NODE_ENV` // with either "production" or "development" based on the `mode` property (webpack 4.0+). // This is powered by the webpack DefinePlugin. // // For `mode` see: https://webpack.js.org/configuration/mode/#usage // For DefinePlugin see: https://webpack.js.org/plugins/define-plugin/#root [key: string]: string | undefined; }; } }