Merge pull request #23675 from eheikes/node-vault

node-vault: Rewrite module function declaration & export
This commit is contained in:
Benjamin Lichtman
2018-03-01 15:47:45 -08:00
committed by GitHub
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -122,7 +122,5 @@ declare namespace NodeVault {
}
}
type GetClient = (options?: NodeVault.VaultOptions) => NodeVault.client;
declare const getClient: GetClient;
export = getClient;
declare function NodeVault(options?: NodeVault.VaultOptions): NodeVault.client;
export = NodeVault;
+1 -1
View File
@@ -1,7 +1,7 @@
import nv = require("node-vault");
// Test code came from the sample code in README of the module.
const options = {
const options: nv.VaultOptions = {
apiVersion: 'v1', // default
endpoint: 'http://127.0.0.1:8200', // default
token: '1234', // optional client token; can be fetched after valid initialization of the server