console-app/lib/Options/PathOption.ts

17 lines
535 B
TypeScript
Raw Permalink Normal View History

2020-10-03 15:14:14 +02:00
/*
* 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 <timo@scode.ovh>, October 2020
*/
2020-06-09 13:58:29 +02:00
import { PathType } from '../TypeValidation/PathType';
2020-06-09 21:03:10 +02:00
import { TypeValidation } from '../TypeValidation/TypeValidation';
2020-06-09 13:58:29 +02:00
import { StringOption } from './StringOption';
export class PathOption extends StringOption {
2020-06-09 21:03:10 +02:00
protected get validation (): TypeValidation {
2020-06-09 13:58:29 +02:00
return new PathType ('path');
}
}