mirror of https://github.com/webpack/webpack.git
change type declaration of util.deprecate to enforce code argument
This commit is contained in:
parent
ba90a1d20e
commit
3a319bf1cd
|
@ -12,7 +12,7 @@ declare module "util" {
|
||||||
function deprecate<T extends Function>(
|
function deprecate<T extends Function>(
|
||||||
fn: T,
|
fn: T,
|
||||||
message: string,
|
message: string,
|
||||||
code?: string
|
code: string
|
||||||
): T;
|
): T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue