console-app/lib/Option.ts

22 lines
431 B
TypeScript
Raw Normal View History

2020-05-09 19:51:43 +02:00
import { TypeValidation } from './Types/TypeValidation';
2020-05-09 21:30:37 +02:00
import { OptionType } from './OptionType';
2020-05-09 19:51:43 +02:00
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;
}
2020-05-09 21:30:37 +02:00
export { Option, OptionProcess };