File tree 6 files changed +27
-1
lines changed 6 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
- // Type definitions for non-npm package Node.js 14.0
1
+ // Type definitions for non-npm package Node.js 14.6
2
2
// Project: http://nodejs.org/
3
3
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
// DefinitelyTyped <https://github.com/DefinitelyTyped>
Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ import { inspect } from 'util';
67
67
context : createContext ( ) ,
68
68
} ) . then ( ( data : MemoryMeasurement ) => { } ) ;
69
69
}
70
+
71
+ {
72
+ runInNewContext (
73
+ 'blah' ,
74
+ { } ,
75
+ { timeout : 5 , microtaskMode : 'afterEvaluate' }
76
+ ) ;
77
+ }
Original file line number Diff line number Diff line change @@ -76,4 +76,8 @@ import { Readable } from "stream";
76
76
const wwww = new workerThreads . Worker ( __filename , {
77
77
env : { doot : 'woot' }
78
78
} ) ;
79
+
80
+ const wwwww = new workerThreads . Worker ( __filename , {
81
+ trackUnmanagedFds : true
82
+ } ) ;
79
83
}
Original file line number Diff line number Diff line change @@ -706,6 +706,15 @@ declare module "tls" {
706
706
* shared between applications. Unused by clients.
707
707
*/
708
708
sessionIdContext ?: string ;
709
+ /**
710
+ * 48 bytes of cryptographically strong pseudo-random data.
711
+ */
712
+ ticketKeys ?: Buffer ;
713
+ /**
714
+ * The number of seconds after which a TLS session created by the server
715
+ * will no longer be resumable.
716
+ */
717
+ sessionTimeout ?: number ;
709
718
}
710
719
711
720
interface SecureContext {
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ declare module "vm" {
41
41
* Default: `false`.
42
42
*/
43
43
breakOnSigint ?: boolean ;
44
+ /**
45
+ * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
46
+ */
47
+ microtaskMode ?: 'afterEvaluate' ;
44
48
}
45
49
interface CompileFunctionOptions extends BaseOptions {
46
50
/**
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ declare module "worker_threads" {
75
75
* Additional data to send in the first worker message.
76
76
*/
77
77
transferList ?: Array < ArrayBuffer | MessagePort > ;
78
+ trackUnmanagedFds ?: boolean ;
78
79
}
79
80
80
81
interface ResourceLimits {
You can’t perform that action at this time.
0 commit comments