feat(node): Fix vm.compileFunction(…) type (#42414)

This commit is contained in:
ExE Boss
2020-02-19 11:12:35 -08:00
committed by GitHub
parent a16dcfb8da
commit a12905bdef
8 changed files with 8 additions and 4 deletions
+1
View File
@@ -41,6 +41,7 @@
// Minh Son Nguyen <https://github.com/nguymin4>
// Junxiao Shi <https://github.com/yoursunny>
// Ilia Baryshnikov <https://github.com/qwelias>
// ExE Boss <https://github.com/ExE-Boss>
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+1
View File
@@ -36,6 +36,7 @@
// Jordi Oliveras Rovira <https://github.com/j-oliveras>
// Thanik Bhongbhibhat <https://github.com/bhongy>
// Minh Son Nguyen <https://github.com/nguymin4>
// ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// NOTE: These definitions support NodeJS and TypeScript 3.1.
+1 -1
View File
@@ -75,5 +75,5 @@ declare module "vm" {
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
}
+1
View File
@@ -39,6 +39,7 @@
// Thanik Bhongbhibhat <https://github.com/bhongy>
// Ivan Sieder <https://github.com/ivansieder>
// Minh Son Nguyen <https://github.com/nguymin4>
// ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// NOTE: These definitions support NodeJS and TypeScript 3.2.
+1 -1
View File
@@ -60,5 +60,5 @@ declare module "vm" {
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
}
+1
View File
@@ -41,6 +41,7 @@
// Minh Son Nguyen <https://github.com/nguymin4>
// Junxiao Shi <https://github.com/yoursunny>
// Ilia Baryshnikov <https://github.com/qwelias>
// ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// NOTE: These definitions support NodeJS and TypeScript 3.2.
+1 -1
View File
@@ -106,5 +106,5 @@ declare module "vm" {
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
}
+1 -1
View File
@@ -106,5 +106,5 @@ declare module "vm" {
function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
}