console-app/lib/Options/FileOption.ts

10 lines
304 B
TypeScript
Raw Normal View History

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 FileOption extends StringOption {
protected get validation ():TypeValidation {
return new PathType ('file');
}
}