Test and docs use options as a string, yet dont declare it in the types (#34670)

This commit is contained in:
Wesley Wigham
2019-04-11 22:10:11 +01:00
committed by John Reilly
parent 15fd037678
commit 7a80ff455a
+2 -2
View File
@@ -389,7 +389,7 @@ declare namespace webpack {
}
interface NewLoader {
loader: string;
options?: { [name: string]: any };
options?: { [name: string]: any } | string;
}
type Loader = string | OldLoader | NewLoader;
@@ -455,7 +455,7 @@ declare namespace webpack {
query?: { [name: string]: any };
}
interface NewLoaderRule extends BaseSingleLoaderRule {
options?: { [name: string]: any };
options?: { [name: string]: any } | string;
}
type LoaderRule = OldLoaderRule | NewLoaderRule;
interface OldUseRule extends BaseDirectRule {