File tree Expand file tree Collapse file tree 6 files changed +27
-1
lines changed
Expand file tree Collapse file tree 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
22// Project: http://nodejs.org/
33// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
44// DefinitelyTyped <https://github.com/DefinitelyTyped>
Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ import { inspect } from 'util';
6767 context : createContext ( ) ,
6868 } ) . then ( ( data : MemoryMeasurement ) => { } ) ;
6969}
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";
7676 const wwww = new workerThreads . Worker ( __filename , {
7777 env : { doot : 'woot' }
7878 } ) ;
79+
80+ const wwwww = new workerThreads . Worker ( __filename , {
81+ trackUnmanagedFds : true
82+ } ) ;
7983}
Original file line number Diff line number Diff line change @@ -706,6 +706,15 @@ declare module "tls" {
706706 * shared between applications. Unused by clients.
707707 */
708708 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 ;
709718 }
710719
711720 interface SecureContext {
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ declare module "vm" {
4141 * Default: `false`.
4242 */
4343 breakOnSigint ?: boolean ;
44+ /**
45+ * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
46+ */
47+ microtaskMode ?: 'afterEvaluate' ;
4448 }
4549 interface CompileFunctionOptions extends BaseOptions {
4650 /**
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ declare module "worker_threads" {
7575 * Additional data to send in the first worker message.
7676 */
7777 transferList ?: Array < ArrayBuffer | MessagePort > ;
78+ trackUnmanagedFds ?: boolean ;
7879 }
7980
8081 interface ResourceLimits {
You can’t perform that action at this time.
0 commit comments