array type

This commit is contained in:
2020-05-09 21:30:37 +02:00
parent 469afeb777
commit 7a13de1d03
11 changed files with 138 additions and 56 deletions

21
lib/Option.ts Normal file
View File

@@ -0,0 +1,21 @@
import { TypeValidation } from './Types/TypeValidation';
import { OptionType } from './OptionType';
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 { Option, OptionProcess };