Files

42 lines
1.2 KiB
TypeScript

declare module 'react-dev-utils/ModuleNotFoundPlugin' {
import webpack = require('webpack');
export default class ModuleNotFoundPlugin extends webpack.Plugin {
constructor(nodeModulesPath: string);
}
}
declare module 'react-dev-utils/ForkTsCheckerWebpackPlugin' {
import { PathLike } from 'fs';
import webpack = require('webpack');
export interface ModuleOptions {
typescript?: any;
async?: boolean;
useTypescriptIncrementalApi?: boolean;
checkSyntacticErrors?: boolean;
silent?: boolean;
resolveModuleNameModule?: string;
resolveTypeReferenceDirectiveModule?: string;
tsconfig?: PathLike;
reportFiles?: string[];
watch?: PathLike;
formatter?: any;
}
export default class ForkTsCheckerWebpackPlugin extends webpack.Plugin {
constructor(options: ModuleOptions);
}
}
declare module 'react-dev-utils/typescriptFormatter' {
export default function _default(): any;
}
declare module 'react-dev-utils/browsersHelper' {
import fs from 'fs';
function checkBrowsers(appPath: fs.PathLike, isInteractive: boolean): any;
}
declare module 'react-dev-utils/evalSourceMapMiddleware' {
import WebpackDevServer from 'webpack-dev-server';
export default function _default(server: WebpackDevServer): any;
}