@types/node 14.14.25 → 14.14.26

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 +8 -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, 04 Feb 2021 08:30:17 GMT
11
+ * Last updated: Thu, 11 Feb 2021 21:04:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/fs.d.ts CHANGED
@@ -1778,7 +1778,7 @@ declare module "fs" {
1778
1778
  export function watch(
1779
1779
  filename: PathLike,
1780
1780
  options: { encoding?: BufferEncoding | null, persistent?: boolean, recursive?: boolean } | BufferEncoding | undefined | null,
1781
- listener?: (event: string, filename: string) => void,
1781
+ listener?: (event: "rename" | "change", filename: string) => void,
1782
1782
  ): FSWatcher;
1783
1783
 
1784
1784
  /**
@@ -1790,7 +1790,11 @@ declare module "fs" {
1790
1790
  * If `persistent` is not supplied, the default of `true` is used.
1791
1791
  * If `recursive` is not supplied, the default of `false` is used.
1792
1792
  */
1793
- export function watch(filename: PathLike, options: { encoding: "buffer", persistent?: boolean, recursive?: boolean } | "buffer", listener?: (event: string, filename: Buffer) => void): FSWatcher;
1793
+ export function watch(
1794
+ filename: PathLike,
1795
+ options: { encoding: "buffer", persistent?: boolean, recursive?: boolean; } | "buffer",
1796
+ listener?: (event: "rename" | "change", filename: Buffer) => void
1797
+ ): FSWatcher;
1794
1798
 
1795
1799
  /**
1796
1800
  * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
@@ -1804,7 +1808,7 @@ declare module "fs" {
1804
1808
  export function watch(
1805
1809
  filename: PathLike,
1806
1810
  options: { encoding?: BufferEncoding | null, persistent?: boolean, recursive?: boolean } | string | null,
1807
- listener?: (event: string, filename: string | Buffer) => void,
1811
+ listener?: (event: "rename" | "change", filename: string | Buffer) => void,
1808
1812
  ): FSWatcher;
1809
1813
 
1810
1814
  /**
@@ -1812,7 +1816,7 @@ declare module "fs" {
1812
1816
  * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
1813
1817
  * URL support is _experimental_.
1814
1818
  */
1815
- export function watch(filename: PathLike, listener?: (event: string, filename: string) => any): FSWatcher;
1819
+ export function watch(filename: PathLike, listener?: (event: "rename" | "change", filename: string) => any): FSWatcher;
1816
1820
 
1817
1821
  /**
1818
1822
  * Asynchronously tests whether or not the given path exists by checking with the file system.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.14.25",
3
+ "version": "14.14.26",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -251,6 +251,6 @@
251
251
  },
252
252
  "scripts": {},
253
253
  "dependencies": {},
254
- "typesPublisherContentHash": "03fe917af611a5f93079169600cfc62c6f9ba94e93ff60f8601364c2ff26ee32",
254
+ "typesPublisherContentHash": "17b47c86751c9605f2b7fe24f7b721984325c2fa26a6d7773151eb03d23e0264",
255
255
  "typeScriptVersion": "3.4"
256
256
  }