/* * 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 { ErrorCallback } from '../ErrorCallback'; import { OptionValue, Option } from '../Option'; export abstract class OptionSource { public abstract async parse(opt: Option, value: OptionValue): Promise; protected error_callback?: ErrorCallback; public constructor (error_callback?: ErrorCallback) { this.error_callback = error_callback; } }