import $ from "jquery"; import FormTypeInterface from "@enhavo/app/form/FormTypeInterface"; export default abstract class FormType implements FormTypeInterface { protected $element: JQuery; public constructor(element: HTMLElement) { this.$element = $(element); this.init(); } public getElement(): HTMLElement { return this.$element.get(0); } protected abstract init(): void; }