mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
argparse: Remove unnecessary type parameters (#19843)
This commit is contained in:
4
types/argparse/index.d.ts
vendored
4
types/argparse/index.d.ts
vendored
@@ -22,8 +22,8 @@ export class ArgumentParser extends ArgumentGroup {
|
||||
export class Namespace {
|
||||
constructor(options: object);
|
||||
get<K extends keyof this, D extends any>(key: K, defaultValue?: D): this[K] | D;
|
||||
isset<K extends keyof this>(key: K): boolean;
|
||||
set<K extends keyof this, V extends this[K]>(key: K, value: V): this;
|
||||
isset(key: keyof this): boolean;
|
||||
set<K extends keyof this>(key: K, value: this[K]): this;
|
||||
set<K extends string, V extends any>(key: K, value: V): this & Record<K, V>;
|
||||
set<K extends object>(obj: K): this & K;
|
||||
unset<K extends keyof this, D extends any>(key: K, defaultValue?: D): this[K] | D;
|
||||
|
||||
Reference in New Issue
Block a user