Skip to content

Commit

Permalink
fix(types): envPrefix should be optional (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Aug 27, 2020
1 parent dd694b6 commit ae3f180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yargs-parser-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface Options {
/** Provide default values for keys: `{ default: { x: 33, y: 'hello world!' } }`. */
default: Dictionary<any>;
/** 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<number>;
/** `path.normalize()` will be applied to values set to this key. */
Expand Down

0 comments on commit ae3f180

Please sign in to comment.