change type declaration of util.deprecate to enforce code argument

This commit is contained in:
Tobias Koppers 2019-11-15 10:12:34 +01:00
parent ba90a1d20e
commit 3a319bf1cd
1 changed files with 1 additions and 1 deletions

2
declarations.d.ts vendored
View File

@ -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;
} }