@types/node 16.10.8 → 16.10.9

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/fs/promises.d.ts +1 -1
  3. node/fs.d.ts +4 -4
  4. node/package.json +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, 13 Oct 2021 18:31:21 GMT
11
+ * Last updated: Wed, 13 Oct 2021 21:31:20 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/fs/promises.d.ts CHANGED
@@ -928,7 +928,7 @@ declare module 'fs/promises' {
928
928
  * @since v12.12.0
929
929
  * @return Fulfills with an {fs.Dir}.
930
930
  */
931
- function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
931
+ function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
932
932
  /**
933
933
  * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
934
934
  *
node/fs.d.ts CHANGED
@@ -3651,7 +3651,7 @@ declare module 'fs' {
3651
3651
  * directory and subsequent read operations.
3652
3652
  * @since v12.12.0
3653
3653
  */
3654
- export function opendirSync(path: string, options?: OpenDirOptions): Dir;
3654
+ export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
3655
3655
  /**
3656
3656
  * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
3657
3657
  * more details.
@@ -3663,10 +3663,10 @@ declare module 'fs' {
3663
3663
  * directory and subsequent read operations.
3664
3664
  * @since v12.12.0
3665
3665
  */
3666
- export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
3667
- export function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
3666
+ export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
3667
+ export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
3668
3668
  export namespace opendir {
3669
- function __promisify__(path: string, options?: OpenDirOptions): Promise<Dir>;
3669
+ function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
3670
3670
  }
3671
3671
  export interface BigIntStats extends StatsBase<bigint> {
3672
3672
  atimeNs: bigint;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.10.8",
3
+ "version": "16.10.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "095c6911e5d8f133d32e7f92331756cbb657676d6b4af727743ff7dc3e02940b",
228
+ "typesPublisherContentHash": "b52a5c5fd395f047eec0e89c8a74282f842268f501870e197cbc75c70b647d6c",
229
229
  "typeScriptVersion": "3.7"
230
230
  }