mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
16 lines
296 B
TypeScript
16 lines
296 B
TypeScript
import { Icons } from "../constants";
|
|
|
|
export class Field {
|
|
iconKey: keyof typeof Icons;
|
|
title: string;
|
|
|
|
constructor(iconKey: keyof typeof Icons, title: string) {
|
|
this.iconKey = iconKey;
|
|
this.title = title;
|
|
}
|
|
|
|
validateInput(value: any): boolean {
|
|
return value !== null;
|
|
}
|
|
}
|