Update index.d.ts

This commit is contained in:
Mohsen Azimi
2017-07-07 09:21:33 -07:00
committed by GitHub
parent 8d32ba9f6b
commit 5e2a11a1e4
+14 -2
View File
@@ -95,6 +95,18 @@ declare namespace webpack {
interface Entry {
[name: string]: string | string[];
}
interface DevtoolModuleTemplateInfo {
identifier: string;
shortIdentifier: string;
resource: any;
resourcePath: string;
absoluteResourcePath: string;
allLoaders: any[];
query: string;
moduleId: string;
hash: string;
}
interface Output {
/** The output directory as absolute path (required). */
@@ -106,9 +118,9 @@ declare namespace webpack {
/** The filename of the SourceMaps for the JavaScript files. They are inside the output.path directory. */
sourceMapFilename?: string;
/** Filename template string of function for the sources array in a generated SourceMap. */
devtoolModuleFilenameTemplate?: string | (info: any) => string;
devtoolModuleFilenameTemplate?: string | ((info: DevtoolModuleTemplateInfo) => string);
/** Similar to output.devtoolModuleFilenameTemplate, but used in the case of duplicate module identifiers. */
devtoolFallbackModuleFilenameTemplate?: string;
devtoolFallbackModuleFilenameTemplate?: string | ((info: DevtoolModuleTemplateInfo) => string);
/**
* Enable line to line mapped mode for all/specified modules.
* Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source.