From 9b5517a8b7ad1421f60fceb2903f4998078c060a Mon Sep 17 00:00:00 2001 From: Taranveer Virk Date: Wed, 19 Dec 2018 00:45:37 -0500 Subject: [PATCH] Add missing option As per the code for the library it allows for a `example` or `sample` option. The `example` option is currently missing and what is documented in the library documentation. Code: https://github.com/rolodato/dotenv-safe/blob/master/index.js#L24 --- types/dotenv-safe/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/dotenv-safe/index.d.ts b/types/dotenv-safe/index.d.ts index 3004b98ba6..39c17ebea5 100644 --- a/types/dotenv-safe/index.d.ts +++ b/types/dotenv-safe/index.d.ts @@ -24,7 +24,12 @@ export interface DotenvSafeOptions { */ path?: string, /** - * Path to example environment file. + * Path to example environment file. (Option 1) + * @default ".env.example" + */ + example?: string, + /** + * Path to example environment file. (Option 2 -- example takes precendence) * @default ".env.example" */ sample?: string,