import { initMixin } from './init' import { stateMixin } from './state' import { renderMixin } from './render' import { eventsMixin } from './events' import { lifecycleMixin } from './lifecycle' import { warn } from '../util/index' import type { GlobalAPI } from 'types/global-api' function Kdu(options) { if (__DEV__ && !(this instanceof Kdu)) { warn('Kdu is a constructor and should be called with the `new` keyword') } this._init(options) } //@ts-expect-error Kdu has function type initMixin(Kdu) //@ts-expect-error Kdu has function type stateMixin(Kdu) //@ts-expect-error Kdu has function type eventsMixin(Kdu) //@ts-expect-error Kdu has function type lifecycleMixin(Kdu) //@ts-expect-error Kdu has function type renderMixin(Kdu) export default Kdu as unknown as GlobalAPI