src/types.ts (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type FlagOptions = {
description?: string;
short?: string;
default?: boolean;
};
export type ArgumentOptions<TType, TDef> = {
description?: string;
type: TType;
required?: boolean;
short?: string;
default?: TDef;
};
|