mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #23675 from eheikes/node-vault
node-vault: Rewrite module function declaration & export
This commit is contained in:
Vendored
+2
-4
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user