console-app/lib/Types.ts
2020-05-09 19:51:43 +02:00

29 lines
493 B
TypeScript

import { TypeValidation } from './Types/TypeValidation';
type OptionType =
'string'
| 'number'
| 'boolean'
| 'file'
| 'folder'
| 'path';
interface Option {
name: string;
type: OptionType;
required?: boolean;
default?: unknown;
alias?: string;
env?: string;
description?: string;
message?: string;
}
interface OptionProcess extends Option {
filled: boolean;
value?: unknown;
type_validation: TypeValidation;
}
export { OptionType, Option, OptionProcess };