Skip to content

Commit

Permalink
fix: propagate Dictionary including undefined in value type
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Mar 18, 2024
1 parent 0c95f9c commit 7410d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/yargs-factory.ts
Expand Up @@ -1660,7 +1660,7 @@ export class YargsInstance {
>(
builder: (key: K, value: V, ...otherArgs: any[]) => YargsInstance,
type: T,
key: K | K[] | {[key in K]: V},
key: K | K[] | {[key in K]: V | undefined},
value?: V
) {
this[kPopulateParserHintDictionary]<T, K, V>(
Expand Down Expand Up @@ -1704,7 +1704,7 @@ export class YargsInstance {
>(
builder: (key: K, value: V, ...otherArgs: any[]) => YargsInstance,
type: T,
key: K | K[] | {[key in K]: V},
key: K | K[] | {[key in K]: V | undefined},
value: V | undefined,
singleKeyHandler: (type: T, key: K, value?: V) => void
) {
Expand Down

0 comments on commit 7410d19

Please sign in to comment.