mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
feat(node): Fix vm.compileFunction(…) type (#42414)
This commit is contained in:
Vendored
+1
@@ -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
|
||||
|
||||
|
||||
Vendored
+1
@@ -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.
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -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.
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -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.
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user