@types/node 12.20.32 → 12.20.33

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 v12.20/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 13 Oct 2021 18:31:24 GMT
11
+ * Last updated: Wed, 13 Oct 2021 21:31:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v12.20/fs.d.ts CHANGED
@@ -2008,13 +2008,13 @@ declare module 'fs' {
2008
2008
  encoding?: BufferEncoding | undefined;
2009
2009
  }
2010
2010
 
2011
- function opendirSync(path: string, options?: OpenDirOptions): Dir;
2011
+ function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
2012
2012
 
2013
- function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2014
- function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2013
+ function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2014
+ function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2015
2015
 
2016
2016
  namespace opendir {
2017
- function __promisify__(path: string, options?: OpenDirOptions): Promise<Dir>;
2017
+ function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
2018
2018
  }
2019
2019
 
2020
2020
  namespace promises {
@@ -2535,7 +2535,7 @@ declare module 'fs' {
2535
2535
  */
2536
2536
  function readFile(path: PathLike | FileHandle, options?: { encoding?: string | null | undefined, flag?: string | number | undefined } | string | null): Promise<string | Buffer>;
2537
2537
 
2538
- function opendir(path: string, options?: OpenDirOptions): Promise<Dir>;
2538
+ function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
2539
2539
  }
2540
2540
 
2541
2541
  interface BigIntStats extends StatsBase<bigint> {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.32",
3
+ "version": "12.20.33",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -195,6 +195,6 @@
195
195
  },
196
196
  "scripts": {},
197
197
  "dependencies": {},
198
- "typesPublisherContentHash": "7bf12e51154f72bae7a4fb278bc59af94b604ea5b8229e29352d477a165a3a67",
198
+ "typesPublisherContentHash": "2ec217fe8fe8c466cce88d1fece7c3279d5f046c485601bb12f40a186cdbfb75",
199
199
  "typeScriptVersion": "3.7"
200
200
  }