From 973bee2015e79a1ecdf1829385cfac4282876095 Mon Sep 17 00:00:00 2001 From: Dave Houston Date: Tue, 15 Jan 2019 20:29:21 -0800 Subject: [PATCH] Add support for secure file options - Create new interface, ISecureFileOptions - Add "secure" key to IFileOptions interface. --- types/nconf/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/nconf/index.d.ts b/types/nconf/index.d.ts index ff2d4b77ad..cd7bd1a4a1 100644 --- a/types/nconf/index.d.ts +++ b/types/nconf/index.d.ts @@ -57,6 +57,11 @@ export interface IOptions { [index: string]: any; } +export interface ISecureFileOptions { + secret: string; + alg?: string; +} + export interface IFileOptions { type?: string; file?: string; @@ -64,6 +69,7 @@ export interface IFileOptions { search?: boolean; format?: IFormat; json_spacing?: number; + secure?: ISecureOptions; } export interface ICallbackFunction {