console-app/lib/Option.ts
2020-05-09 21:30:37 +02:00

22 lines
431 B
TypeScript

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 };