@types/node 18.7.16 → 18.7.18

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.
Files changed (4) hide show
  1. node/README.md +1 -1
  2. node/os.d.ts +9 -0
  3. node/package.json +2 -2
  4. node/path.d.ts +2 -2
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: Wed, 07 Sep 2022 20:32:43 GMT
11
+ * Last updated: Tue, 13 Sep 2022 22:32:55 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/os.d.ts CHANGED
@@ -413,6 +413,15 @@ declare module 'os' {
413
413
  * @since v0.5.0
414
414
  */
415
415
  function platform(): NodeJS.Platform;
416
+ /**
417
+ * Returns the machine type as a string, such as arm, aarch64, mips, mips64, ppc64, ppc64le, s390, s390x, i386, i686, x86_64.
418
+ *
419
+ * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname).
420
+ * On Windows, `RtlGetVersion()` is used, and if it is not available, `GetVersionExW()` will be used.
421
+ * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
422
+ * @since v18.9.0
423
+ */
424
+ function machine(): string;
416
425
  /**
417
426
  * Returns the operating system's default directory for temporary files as a
418
427
  * string.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.16",
3
+ "version": "18.7.18",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "c93df0685e32b0f653a67daaa7e7a626db993a7d2c1545ef65c3ba596999c46b",
223
+ "typesPublisherContentHash": "84a5d57ed95f7a07d1e51fa4e42df59efbcc4ba52b6e687f11f5fc0ea1ec9188",
224
224
  "typeScriptVersion": "4.1"
225
225
  }
node/path.d.ts CHANGED
@@ -137,11 +137,11 @@ declare module 'path' {
137
137
  /**
138
138
  * The platform-specific file separator. '\\' or '/'.
139
139
  */
140
- readonly sep: string;
140
+ readonly sep: '\\' | '/';
141
141
  /**
142
142
  * The platform-specific file delimiter. ';' or ':'.
143
143
  */
144
- readonly delimiter: string;
144
+ readonly delimiter: ';' | ':';
145
145
  /**
146
146
  * Returns an object from a path string - the opposite of format().
147
147
  *