decide.nolog.cz/app/models/selection.ts
Jeldrik Hanschke f0cff27e99
Convert to TypeScript (#713)
* setup typescript

* covert to TypeScript
2023-10-29 19:16:33 +01:00

20 lines
416 B
TypeScript

export type SelectionInput = {
icon: string;
label: string;
labelTranslation: string;
type: string;
};
export default class Selection {
icon: string;
label: string;
labelTranslation: string;
type: string;
constructor({ icon, label, labelTranslation, type }: SelectionInput) {
this.icon = icon;
this.label = label;
this.labelTranslation = labelTranslation;
this.type = type;
}
}