@types/node 12.0.2 → 12.0.3

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/package.json +2 -2
  3. node/querystring.d.ts +11 -3
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: Tue, 14 May 2019 22:04:14 GMT
11
+ * Last updated: Tue, 28 May 2019 19:24:35 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
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": "47132d67cb9651de76893d99f5aea74537f07741291a5fd1f13009f53689281d",
209
+ "typesPublisherContentHash": "d708f60a2c54c84e2360f26a4a57253ab14f0ec0cd3390d5b0eeb2c4b6e4d5b0",
210
210
  "typeScriptVersion": "2.0"
211
211
  }
node/querystring.d.ts CHANGED
@@ -12,13 +12,21 @@ declare module "querystring" {
12
12
 
13
13
  interface ParsedUrlQueryInput {
14
14
  [key: string]:
15
- // The value type here is a "poor man's `unknown`". When these types support TypeScript
16
- // 3.0+, we can replace this with `unknown`.
17
- {} | null | undefined;
15
+ // The value type here is a "poor man's `unknown`". When these types support TypeScript
16
+ // 3.0+, we can replace this with `unknown`.
17
+ {} | null | undefined;
18
18
  }
19
19
 
20
20
  function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
21
21
  function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
22
+ /**
23
+ * The querystring.encode() function is an alias for querystring.stringify().
24
+ */
25
+ const encode: typeof stringify;
26
+ /**
27
+ * The querystring.decode() function is an alias for querystring.parse().
28
+ */
29
+ const decode: typeof parse;
22
30
  function escape(str: string): string;
23
31
  function unescape(str: string): string;
24
32
  }