fix
This commit is contained in:
@ -13,6 +13,10 @@ export class PathType extends TypeValidation {
|
||||
return 'string';
|
||||
}
|
||||
|
||||
public get persistent_type (): 'string'|'number'|'boolean'|'array' {
|
||||
return 'string';
|
||||
}
|
||||
|
||||
public async to_type (value: unknown): Promise<unknown> {
|
||||
if (typeof value !== 'string')
|
||||
throw new Error (`invalid type for ${this.option_type}`);
|
||||
|
Reference in New Issue
Block a user