console-app/lib/Options/StringOption.ts

19 lines
488 B
TypeScript
Raw Normal View History

2020-06-09 13:58:29 +02:00
import { TypeValidation } from '../TypeValidation/TypeValidation';
2020-06-09 13:13:27 +02:00
import { Option } from '../Option';
import { BaseOption } from './BaseOption';
2020-06-09 13:58:29 +02:00
interface StringOptionConfig extends Option {
preset?: string[]
}
2020-06-09 13:13:27 +02:00
2020-06-09 13:58:29 +02:00
export class StringOption extends BaseOption {
protected get validation ():TypeValidation {
return new TypeValidation ('string');
2020-06-09 13:13:27 +02:00
}
2020-06-09 13:58:29 +02:00
// eslint-disable-next-line no-useless-constructor
public constructor (config: StringOptionConfig) {
super (config);
2020-06-09 13:13:27 +02:00
}
}