@types/node 18.19.36 → 18.19.38

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 v18.19/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 17 Jun 2024 23:07:28 GMT
11
+ * Last updated: Thu, 20 Jun 2024 21:07:25 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1391,8 +1391,8 @@ declare module "child_process" {
1391
1391
  * @param modulePath The module to run in the child.
1392
1392
  * @param args List of string arguments.
1393
1393
  */
1394
- function fork(modulePath: string, options?: ForkOptions): ChildProcess;
1395
- function fork(modulePath: string, args?: readonly string[], options?: ForkOptions): ChildProcess;
1394
+ function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess;
1395
+ function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess;
1396
1396
  interface SpawnSyncOptions extends CommonSpawnOptions {
1397
1397
  input?: string | NodeJS.ArrayBufferView | undefined;
1398
1398
  maxBuffer?: number | undefined;
@@ -359,30 +359,31 @@ declare module "dns/promises" {
359
359
  * @param order must be `'ipv4first'` or `'verbatim'`.
360
360
  */
361
361
  function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
362
- const NODATA: "NODATA";
363
- const FORMERR: "FORMERR";
364
- const SERVFAIL: "SERVFAIL";
365
- const NOTFOUND: "NOTFOUND";
366
- const NOTIMP: "NOTIMP";
367
- const REFUSED: "REFUSED";
368
- const BADQUERY: "BADQUERY";
369
- const BADNAME: "BADNAME";
370
- const BADFAMILY: "BADFAMILY";
371
- const BADRESP: "BADRESP";
372
- const CONNREFUSED: "TIMEOUT";
373
- const TIMEOUT: "TIMEOUT";
362
+ // Error codes
363
+ const NODATA: "ENODATA";
364
+ const FORMERR: "EFORMERR";
365
+ const SERVFAIL: "ESERVFAIL";
366
+ const NOTFOUND: "ENOTFOUND";
367
+ const NOTIMP: "ENOTIMP";
368
+ const REFUSED: "EREFUSED";
369
+ const BADQUERY: "EBADQUERY";
370
+ const BADNAME: "EBADNAME";
371
+ const BADFAMILY: "EBADFAMILY";
372
+ const BADRESP: "EBADRESP";
373
+ const CONNREFUSED: "ECONNREFUSED";
374
+ const TIMEOUT: "ETIMEOUT";
374
375
  const EOF: "EOF";
375
- const FILE: "FILE";
376
- const NOMEM: "NOMEM";
377
- const DESTRUCTION: "DESTRUCTION";
378
- const BADSTR: "BADSTR";
379
- const BADFLAGS: "BADFLAGS";
380
- const NONAME: "NONAME";
381
- const BADHINTS: "BADHINTS";
382
- const NOTINITIALIZED: "NOTINITIALIZED";
383
- const LOADIPHLPAPI: "LOADIPHLPAPI";
384
- const ADDRGETNETWORKPARAMS: "ADDRGETNETWORKPARAMS";
385
- const CANCELLED: "CANCELLED";
376
+ const FILE: "EFILE";
377
+ const NOMEM: "ENOMEM";
378
+ const DESTRUCTION: "EDESTRUCTION";
379
+ const BADSTR: "EBADSTR";
380
+ const BADFLAGS: "EBADFLAGS";
381
+ const NONAME: "ENONAME";
382
+ const BADHINTS: "EBADHINTS";
383
+ const NOTINITIALIZED: "ENOTINITIALIZED";
384
+ const LOADIPHLPAPI: "ELOADIPHLPAPI";
385
+ const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
386
+ const CANCELLED: "ECANCELLED";
386
387
  /**
387
388
  * An independent resolver for DNS requests.
388
389
  *
node v18.19/dns.d.ts CHANGED
@@ -732,30 +732,30 @@ declare module "dns" {
732
732
  */
733
733
  export function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
734
734
  // Error codes
735
- export const NODATA: "NODATA";
736
- export const FORMERR: "FORMERR";
737
- export const SERVFAIL: "SERVFAIL";
738
- export const NOTFOUND: "NOTFOUND";
739
- export const NOTIMP: "NOTIMP";
740
- export const REFUSED: "REFUSED";
741
- export const BADQUERY: "BADQUERY";
742
- export const BADNAME: "BADNAME";
743
- export const BADFAMILY: "BADFAMILY";
744
- export const BADRESP: "BADRESP";
745
- export const CONNREFUSED: "TIMEOUT";
746
- export const TIMEOUT: "TIMEOUT";
735
+ export const NODATA: "ENODATA";
736
+ export const FORMERR: "EFORMERR";
737
+ export const SERVFAIL: "ESERVFAIL";
738
+ export const NOTFOUND: "ENOTFOUND";
739
+ export const NOTIMP: "ENOTIMP";
740
+ export const REFUSED: "EREFUSED";
741
+ export const BADQUERY: "EBADQUERY";
742
+ export const BADNAME: "EBADNAME";
743
+ export const BADFAMILY: "EBADFAMILY";
744
+ export const BADRESP: "EBADRESP";
745
+ export const CONNREFUSED: "ECONNREFUSED";
746
+ export const TIMEOUT: "ETIMEOUT";
747
747
  export const EOF: "EOF";
748
- export const FILE: "FILE";
749
- export const NOMEM: "NOMEM";
750
- export const DESTRUCTION: "DESTRUCTION";
751
- export const BADSTR: "BADSTR";
752
- export const BADFLAGS: "BADFLAGS";
753
- export const NONAME: "NONAME";
754
- export const BADHINTS: "BADHINTS";
755
- export const NOTINITIALIZED: "NOTINITIALIZED";
756
- export const LOADIPHLPAPI: "LOADIPHLPAPI";
757
- export const ADDRGETNETWORKPARAMS: "ADDRGETNETWORKPARAMS";
758
- export const CANCELLED: "CANCELLED";
748
+ export const FILE: "EFILE";
749
+ export const NOMEM: "ENOMEM";
750
+ export const DESTRUCTION: "EDESTRUCTION";
751
+ export const BADSTR: "EBADSTR";
752
+ export const BADFLAGS: "EBADFLAGS";
753
+ export const NONAME: "ENONAME";
754
+ export const BADHINTS: "EBADHINTS";
755
+ export const NOTINITIALIZED: "ENOTINITIALIZED";
756
+ export const LOADIPHLPAPI: "ELOADIPHLPAPI";
757
+ export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
758
+ export const CANCELLED: "ECANCELLED";
759
759
  export interface ResolverOptions {
760
760
  /**
761
761
  * Query timeout in milliseconds, or `-1` to use the default timeout.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.36",
3
+ "version": "18.19.38",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -217,6 +217,6 @@
217
217
  "dependencies": {
218
218
  "undici-types": "~5.26.4"
219
219
  },
220
- "typesPublisherContentHash": "c7afdaf50620e5c6f5c27f76dc0cf3f4554629807cd6648de59c4b768f4dc1d7",
220
+ "typesPublisherContentHash": "cc599c07e2a574410f619799725fadb07e99312f7eadc180fb0a7a2e46c13fd1",
221
221
  "typeScriptVersion": "4.7"
222
222
  }