1681
}
1682
[kPopulateParserHintArrayDictionary]<
1684
>
K extends keyof Options[T] & string = keyof Options[T] & string,
1685
>
V extends ValueOf<ValueOf<Options[T]>> | ValueOf<ValueOf<Options[T]>>[] =
1686
>
ValueOf<ValueOf<Options[T]>> | ValueOf<ValueOf<Options[T]>>[],
1687
>
>(
1688
>
builder: (key: K, value: V, ...otherArgs: any[]) => YargsInstance,
1689
>
type: T,
1690
>
key: K | K[] | {[key in K]: V},
1691
>
value?: V
1692
>
) {
1693
>
this[kPopulateParserHintDictionary]<T, K, V>(
1694
>
builder,
1695
>
type,
1696
>
key,
1697
>
value,
1698
>
(type, key, value) => {
1699
>
this.#options[type][key] = (
1700
>
this.#options[type][key] || ([] as Options[T][keyof Options[T]])
1701
>
).concat(value);
1702
>
}
1703
>
);
1704
>
}
1705
[kPopulateParserHintDictionary]<
1706
T extends keyof Options,