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 { 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
|
|
|
}
|
|
|
|
}
|