Visualize Your Ideas With Code
import {MetaField} from './MetaField';
import {MetaOption} from './MetaOption';
/**
* Represents a string stored in a meta file.
*/
export class StringMetaField<T extends string = string> extends MetaField<T> {
public readonly type = String;
protected presets: MetaOption<T>[] = [];
public getPresets() {
return this.presets;
}
public setPresets(options: MetaOption<T>[]): this {
this.presets = options;
return this;
}
}