parser
parser copied to clipboard
default value typing question
I thought that by declaring the default attribute in a flag, it would set it to the type I put.
But it's <T | undefined>
and it's a problem for me. Is it intentional?
IMO it should not be undefined since it's default.
export declare type IOptionFlag<T> = IFlagBase<T, string> & {
type: 'option';
helpValue?: string;
default?: Default<T | undefined>;
multiple: boolean;
input: string[];
options?: string[];
};
```