/* * Copyright (C) Sapphirecode - All Rights Reserved * This file is part of console-app which is released under MIT. * See file 'LICENSE' for full license details. * Created by Timo Hocker , May 2020 */ import { TypeValidation } from './TypeValidation/TypeValidation'; interface SourceConfig { console?: boolean, configs?: string[], env?: boolean, interactive?: boolean, } interface Option { name: string; required?: boolean; default?: unknown; sources?: SourceConfig; alias?: string; env?: string; message?: string; error?: string; } class OptionValue { public filled = false; public value?: unknown; public readonly type_validation: TypeValidation; public constructor (type_validation: TypeValidation) { this.type_validation = type_validation; } } export { Option, OptionValue };