From ae3f180e14df2de2fd962145f4518f9aa0e76523 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 26 Aug 2020 21:54:53 -0700 Subject: [PATCH] fix(types): envPrefix should be optional (#305) --- lib/yargs-parser-types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yargs-parser-types.ts b/lib/yargs-parser-types.ts index a1e2c4cf..7469c411 100644 --- a/lib/yargs-parser-types.ts +++ b/lib/yargs-parser-types.ts @@ -98,7 +98,7 @@ export interface Options { /** Provide default values for keys: `{ default: { x: 33, y: 'hello world!' } }`. */ default: Dictionary; /** Environment variables (`process.env`) with the prefix provided should be parsed. */ - envPrefix: string; + envPrefix?: string; /** Specify that a key requires n arguments: `{ narg: {x: 2} }`. */ narg: Dictionary; /** `path.normalize()` will be applied to values set to this key. */