Skip to content

Commit ae3f180

Browse files
authored
fix(types): envPrefix should be optional (#305)
1 parent dd694b6 commit ae3f180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/yargs-parser-types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export interface Options {
9898
/** Provide default values for keys: `{ default: { x: 33, y: 'hello world!' } }`. */
9999
default: Dictionary<any>;
100100
/** Environment variables (`process.env`) with the prefix provided should be parsed. */
101-
envPrefix: string;
101+
envPrefix?: string;
102102
/** Specify that a key requires n arguments: `{ narg: {x: 2} }`. */
103103
narg: Dictionary<number>;
104104
/** `path.normalize()` will be applied to values set to this key. */

0 commit comments

Comments
 (0)