console-app/lib/Options/StringOption.ts

15 lines
443 B
TypeScript
Raw Normal View History

2020-06-09 13:58:29 +02:00
import { TypeValidation } from '../TypeValidation/TypeValidation';
2020-06-09 21:03:10 +02:00
import { StringOptionConfig } from '../SubConfigs';
2020-06-09 13:13:27 +02:00
import { BaseOption } from './BaseOption';
2020-06-09 21:03:10 +02:00
export class StringOption extends BaseOption<string> {
2020-06-09 13:58:29 +02:00
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
}
}