@types/node 18.11.11 → 18.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 05 Dec 2022 20:03:09 GMT
11
+ * Last updated: Sat, 10 Dec 2022 19:03:04 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/crypto.d.ts CHANGED
@@ -3131,23 +3131,23 @@ declare module 'crypto' {
3131
3131
  /**
3132
3132
  * @default 'always'
3133
3133
  */
3134
- subject: 'always' | 'never';
3134
+ subject?: 'always' | 'default' | 'never';
3135
3135
  /**
3136
3136
  * @default true
3137
3137
  */
3138
- wildcards: boolean;
3138
+ wildcards?: boolean;
3139
3139
  /**
3140
3140
  * @default true
3141
3141
  */
3142
- partialWildcards: boolean;
3142
+ partialWildcards?: boolean;
3143
3143
  /**
3144
3144
  * @default false
3145
3145
  */
3146
- multiLabelWildcards: boolean;
3146
+ multiLabelWildcards?: boolean;
3147
3147
  /**
3148
3148
  * @default false
3149
3149
  */
3150
- singleLabelSubdomains: boolean;
3150
+ singleLabelSubdomains?: boolean;
3151
3151
  }
3152
3152
  /**
3153
3153
  * Encapsulates an X509 certificate and provides read-only access to
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.11.11",
3
+ "version": "18.11.13",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "057c6b97c8a23237ad2b26df389f38a6113c4a771786da504498887439222982",
230
+ "typesPublisherContentHash": "f646b23d6bcabdf3a36c28435dfcad24f0cc39b0e73450b4612986d24bbcfb35",
231
231
  "typeScriptVersion": "4.2"
232
232
  }
node/timers/promises.d.ts CHANGED
@@ -62,6 +62,31 @@ declare module 'timers/promises' {
62
62
  * @since v15.9.0
63
63
  */
64
64
  function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
65
+
66
+ interface Scheduler {
67
+ /**
68
+ * ```js
69
+ * import { scheduler } from 'node:timers/promises';
70
+ *
71
+ * await scheduler.wait(1000); // Wait one second before continuing
72
+ * ```
73
+ * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
74
+ * Calling timersPromises.scheduler.wait(delay, options) is roughly equivalent to calling timersPromises.setTimeout(delay, undefined, options) except that the ref option is not supported.
75
+ * @since v16.14.0
76
+ * @experimental
77
+ * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
78
+ */
79
+ wait: (delay?: number, options?: TimerOptions) => Promise<void>;
80
+ /**
81
+ * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
82
+ * Calling timersPromises.scheduler.yield() is equivalent to calling timersPromises.setImmediate() with no arguments.
83
+ * @since v16.14.0
84
+ * @experimental
85
+ */
86
+ yield: () => Promise<void>;
87
+ }
88
+
89
+ const scheduler: Scheduler;
65
90
  }
66
91
  declare module 'node:timers/promises' {
67
92
  export * from 'timers/promises';
node/ts4.8/crypto.d.ts CHANGED
@@ -3131,23 +3131,23 @@ declare module 'crypto' {
3131
3131
  /**
3132
3132
  * @default 'always'
3133
3133
  */
3134
- subject: 'always' | 'never';
3134
+ subject?: 'always' | 'default' | 'never';
3135
3135
  /**
3136
3136
  * @default true
3137
3137
  */
3138
- wildcards: boolean;
3138
+ wildcards?: boolean;
3139
3139
  /**
3140
3140
  * @default true
3141
3141
  */
3142
- partialWildcards: boolean;
3142
+ partialWildcards?: boolean;
3143
3143
  /**
3144
3144
  * @default false
3145
3145
  */
3146
- multiLabelWildcards: boolean;
3146
+ multiLabelWildcards?: boolean;
3147
3147
  /**
3148
3148
  * @default false
3149
3149
  */
3150
- singleLabelSubdomains: boolean;
3150
+ singleLabelSubdomains?: boolean;
3151
3151
  }
3152
3152
  /**
3153
3153
  * Encapsulates an X509 certificate and provides read-only access to
@@ -62,6 +62,31 @@ declare module 'timers/promises' {
62
62
  * @since v15.9.0
63
63
  */
64
64
  function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
65
+
66
+ interface Scheduler {
67
+ /**
68
+ * ```js
69
+ * import { scheduler } from 'node:timers/promises';
70
+ *
71
+ * await scheduler.wait(1000); // Wait one second before continuing
72
+ * ```
73
+ * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
74
+ * Calling timersPromises.scheduler.wait(delay, options) is roughly equivalent to calling timersPromises.setTimeout(delay, undefined, options) except that the ref option is not supported.
75
+ * @since v16.14.0
76
+ * @experimental
77
+ * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
78
+ */
79
+ wait: (delay?: number, options?: TimerOptions) => Promise<void>;
80
+ /**
81
+ * An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API.
82
+ * Calling timersPromises.scheduler.yield() is equivalent to calling timersPromises.setImmediate() with no arguments.
83
+ * @since v16.14.0
84
+ * @experimental
85
+ */
86
+ yield: () => Promise<void>;
87
+ }
88
+
89
+ const scheduler: Scheduler;
65
90
  }
66
91
  declare module 'node:timers/promises' {
67
92
  export * from 'timers/promises';