import { customObject } from './type' export default class Listener { compositionKeys: string; originMethods: () => any; registerMethods: () => any; el: HTMLElement | void; isRegister: boolean; isAdd: boolean; isAutoFocusEl: boolean; constructor(options: customObject) { const { compositionKeys = null, el = null, originMethods = null, isRegister = false, isAdd = false, registerMethods = null, isAutoFocusEl = true, } = options; this.compositionKeys = compositionKeys; this.el = el; this.isRegister = isRegister; this.isAdd = isAdd; this.isAutoFocusEl = isAutoFocusEl; this.originMethods = originMethods; this.registerMethods = registerMethods; } }