import { OptionProcess } from '../Option'; export abstract class OptionSource { public abstract async parse(opt: OptionProcess[]): Promise; protected async assign_arg ( opt: OptionProcess, value: unknown ): Promise { try { opt.value = await opt.type_validation.to_type (value); opt.filled = true; } catch (e) { // could not assing } } }