mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Fix RuntimeChunk types
This commit is contained in:
Vendored
+5
-1
@@ -221,7 +221,11 @@ declare namespace Config {
|
||||
}
|
||||
|
||||
interface RuntimeChunk {
|
||||
name: string | Function;
|
||||
name: string | RuntimeChunkFunction;
|
||||
}
|
||||
|
||||
interface RuntimeChunkFunction {
|
||||
(entryPoint: Config.EntryPoint): string;
|
||||
}
|
||||
|
||||
interface SplitChunksOptions { [name: string]: any; }
|
||||
|
||||
@@ -166,6 +166,7 @@ config
|
||||
.removeAvailableModules(true)
|
||||
.removeEmptyChunks(true)
|
||||
.runtimeChunk("single")
|
||||
.runtimeChunk({ name: ({}) => "hello" })
|
||||
.sideEffects(true)
|
||||
.splitChunks({})
|
||||
.usedExports(true)
|
||||
|
||||
Reference in New Issue
Block a user