@types/node 12.0.7 → 12.0.8

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 (3) hide show
  1. node/README.md +1 -1
  2. node/fs.d.ts +4 -4
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js ( http://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: Thu, 06 Jun 2019 23:14:22 GMT
11
+ * Last updated: Tue, 11 Jun 2019 19:11:52 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
14
14
 
node/fs.d.ts CHANGED
@@ -858,7 +858,7 @@ declare module "fs" {
858
858
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
859
859
  * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
860
860
  */
861
- function readdir(path: PathLike, options: { withFileTypes: true }, callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void): void;
861
+ function readdir(path: PathLike, options: { encoding?: string | null; withFileTypes: true }, callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void): void;
862
862
 
863
863
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
864
864
  namespace readdir {
@@ -888,7 +888,7 @@ declare module "fs" {
888
888
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
889
889
  * @param options If called with `withFileTypes: true` the result data will be an array of Dirent
890
890
  */
891
- function __promisify__(path: PathLike, options: { withFileTypes: true }): Promise<Dirent[]>;
891
+ function __promisify__(path: PathLike, options: { encoding?: string | null; withFileTypes: true }): Promise<Dirent[]>;
892
892
  }
893
893
 
894
894
  /**
@@ -913,11 +913,11 @@ declare module "fs" {
913
913
  function readdirSync(path: PathLike, options?: { encoding?: string | null; withFileTypes?: false } | string | null): string[] | Buffer[];
914
914
 
915
915
  /**
916
- * Asynchronous readdir(3) - read a directory.
916
+ * Synchronous readdir(3) - read a directory.
917
917
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
918
918
  * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
919
919
  */
920
- function readdirSync(path: PathLike, options: { withFileTypes: true }): Dirent[];
920
+ function readdirSync(path: PathLike, options: { encoding?: string | null; withFileTypes: true }): Dirent[];
921
921
 
922
922
  /**
923
923
  * Asynchronous close(2) - close a file descriptor.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.0.7",
3
+ "version": "12.0.8",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -206,6 +206,6 @@
206
206
  },
207
207
  "scripts": {},
208
208
  "dependencies": {},
209
- "typesPublisherContentHash": "2043030d9cf3e68db17480b60847159e473c295abfed316add246578fb0ddb0c",
209
+ "typesPublisherContentHash": "b10057a9c0d44251a5a8984947e54f9f9e906169ad37310f25993c9a526df5ab",
210
210
  "typeScriptVersion": "2.0"
211
211
  }