Skip to content

Commit 2b2f7f5

Browse files
authored
fix: propagate Dictionary including undefined in value type (#2393)
1 parent 0c95f9c commit 2b2f7f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/yargs-factory.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ export class YargsInstance {
16601660
>(
16611661
builder: (key: K, value: V, ...otherArgs: any[]) => YargsInstance,
16621662
type: T,
1663-
key: K | K[] | {[key in K]: V},
1663+
key: K | K[] | {[key in K]: V | undefined},
16641664
value?: V
16651665
) {
16661666
this[kPopulateParserHintDictionary]<T, K, V>(
@@ -1704,7 +1704,7 @@ export class YargsInstance {
17041704
>(
17051705
builder: (key: K, value: V, ...otherArgs: any[]) => YargsInstance,
17061706
type: T,
1707-
key: K | K[] | {[key in K]: V},
1707+
key: K | K[] | {[key in K]: V | undefined},
17081708
value: V | undefined,
17091709
singleKeyHandler: (type: T, key: K, value?: V) => void
17101710
) {

0 commit comments

Comments
 (0)