diff --git a/types/nodecredstash/index.d.ts b/types/nodecredstash/index.d.ts
index d2489178a4..76375aac21 100644
--- a/types/nodecredstash/index.d.ts
+++ b/types/nodecredstash/index.d.ts
@@ -6,7 +6,7 @@
///
import * as AWS from 'aws-sdk';
-interface ICredstashConfig {
+interface CredstashConfig {
table?: string;
awsOpts?: AWS.KMS.ClientConfiguration;
dynamoOpts?: AWS.DynamoDB.ClientConfiguration;
@@ -14,32 +14,32 @@ interface ICredstashConfig {
kmsOpts?: AWS.KMS.ClientConfiguration;
}
-interface ICredstashContext {
+interface CredstashContext {
[key: string]: string;
}
-interface IPutSecretOptions {
+interface PutSecretOptions {
name: string;
secret: string;
- context: ICredstashContext;
+ context: CredstashContext;
digest?: string;
version?: number;
}
-interface ICredstash {
+interface Credstash {
getHighestVersion: (options: { name: string }) => Promise;
incrementVersion: (options: { name: string }) => Promise;
- putSecret: (options: IPutSecretOptions) => Promise;
- decryptStash: (stash: { key: string; }, context?: ICredstashContext) => Promise;
- getAllVersions: (options: { name: string, context?: ICredstashContext, limit?: number }) => Promise>;
- getSecret: (options: { name: string, context?: ICredstashContext, version?: number }) => Promise;
- deleteSecrets: (options: { name: string }) => Promise>;
+ putSecret: (options: PutSecretOptions) => Promise;
+ decryptStash: (stash: { key: string; }, context?: CredstashContext) => Promise;
+ getAllVersions: (options: { name: string, context?: CredstashContext, limit?: number }) => Promise>;
+ getSecret: (options: { name: string, context?: CredstashContext, version?: number }) => Promise;
+ deleteSecrets: (options: { name: string }) => Promise;
deleteSecret: (options: { name: string, version: number }) => Promise;
listSecrets: () => Promise;
- getAllSecrets: (options: { version?: number, context?: ICredstashContext, startsWith?: string }) => Promise<{ [key: string]: string }>;
+ getAllSecrets: (options: { version?: number, context?: CredstashContext, startsWith?: string }) => Promise<{ [key: string]: string }>;
createDdbTable: () => Promise;
}
-declare function Credstash(config: ICredstashConfig): ICredstash;
+declare function Credstash(config: CredstashConfig): Credstash;
export = Credstash;
diff --git a/types/nodecredstash/package.json b/types/nodecredstash/package.json
new file mode 100644
index 0000000000..0347abc684
--- /dev/null
+++ b/types/nodecredstash/package.json
@@ -0,0 +1,6 @@
+{
+ "dependencies": {
+ "aws-sdk": "^2.211.0"
+ },
+ "private": true
+}
diff --git a/types/nodecredstash/tsconfig.json b/types/nodecredstash/tsconfig.json
index da430c0182..ec4305243c 100644
--- a/types/nodecredstash/tsconfig.json
+++ b/types/nodecredstash/tsconfig.json
@@ -7,6 +7,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
+ "strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"