@types/node 11.13.3 → 11.13.4

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/crypto.d.ts +9 -6
  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: Wed, 10 Apr 2019 17:21:43 GMT
11
+ * Last updated: Wed, 10 Apr 2019 17:39:58 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "11.13.3",
3
+ "version": "11.13.4",
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": "63fa42bcd8b2cf54eb20f7b4198df34b302bd97b97235e575a7660e7a52f1c51",
209
+ "typesPublisherContentHash": "65764fe7ac3d472c68db335bc5a4ededefe76e9f1c2d7176dca805fba7084a52",
210
210
  "typeScriptVersion": "2.0"
211
211
  }