@types/node 11.13.1 → 11.13.5

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/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: Mon, 08 Apr 2019 17:19:46 GMT
11
+ * Last updated: Wed, 17 Apr 2019 21:48:02 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/crypto.d.ts CHANGED
@@ -135,15 +135,18 @@ declare module "crypto" {
135
135
 
136
136
  export type KeyObjectType = 'secret' | 'public' | 'private';
137
137
 
138
+ interface KeyExportOptions<T extends KeyFormat> {
139
+ type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1';
140
+ format: T;
141
+ cipher?: string;
142
+ passphrase?: string | Buffer;
143
+ }
144
+
138
145
  class KeyObject {
139
146
  private constructor();
140
147
  asymmetricKeyType?: KeyType;
141
- export(options?: {
142
- type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1',
143
- format: KeyFormat,
144
- cipher?: string,
145
- passphrase?: string | Buffer
146
- }): string | Buffer;
148
+ export(options: KeyExportOptions<'pem'>): string | Buffer;
149
+ export(options?: KeyExportOptions<'der'>): Buffer;
147
150
  symmetricSize?: number;
148
151
  type: KeyObjectType;
149
152
  }
node/globals.d.ts CHANGED
@@ -45,7 +45,7 @@ interface Console {
45
45
  /**
46
46
  * The `console.groupCollapsed()` function is an alias for {@link console.group()}.
47
47
  */
48
- groupCollapsed(): void;
48
+ groupCollapsed(...label: any[]): void;
49
49
  /**
50
50
  * Decreases indentation of subsequent lines by two spaces.
51
51
  */
node/http.d.ts CHANGED
@@ -7,6 +7,7 @@ declare module "http" {
7
7
  // incoming headers will never contain number
8
8
  interface IncomingHttpHeaders {
9
9
  'accept'?: string;
10
+ 'accept-language'?: string;
10
11
  'accept-patch'?: string;
11
12
  'accept-ranges'?: string;
12
13
  'access-control-allow-credentials'?: string;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "11.13.1",
3
+ "version": "11.13.5",
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": "3f83a821b106f368c6c3d54681cfe10fa79a3d49f541b86b4a7e73c6fe1485ae",
209
+ "typesPublisherContentHash": "1ff91d8b282531f8bee3c810a6214172c8ff8e71a89fd9d6d027c9d9465f6422",
210
210
  "typeScriptVersion": "2.0"
211
211
  }
node/querystring.d.ts CHANGED
@@ -10,7 +10,14 @@ declare module "querystring" {
10
10
 
11
11
  interface ParsedUrlQuery { [key: string]: string | string[]; }
12
12
 
13
- function stringify(obj?: {}, sep?: string, eq?: string, options?: StringifyOptions): string;
13
+ interface ParsedUrlQueryInput {
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;
18
+ }
19
+
20
+ function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
14
21
  function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
15
22
  function escape(str: string): string;
16
23
  function unescape(str: string): string;
node/url.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare module "url" {
2
- import { ParsedUrlQuery } from 'querystring';
2
+ import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
3
3
 
4
4
  interface UrlObjectCommon {
5
5
  auth?: string;
@@ -17,7 +17,7 @@ declare module "url" {
17
17
  // Input to `url.format`
18
18
  interface UrlObject extends UrlObjectCommon {
19
19
  port?: string | number;
20
- query?: string | null | { [key: string]: any };
20
+ query?: string | null | ParsedUrlQueryInput;
21
21
  }
22
22
 
23
23
  // Output of `url.parse`