29 lines
493 B
TypeScript
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 };
|