-import { createApp, App, Plugin } from 'vue'
+import { createApp, App, Plugin, defineComponent } from 'vue'
const app = createApp({})
// @ts-expect-error: needs options
app.use(PluginTyped)
app.use(PluginTyped, { option2: 2, option3: true })
+
+// vuetify usage
+const key: string = ''
+const aliases: Record<string, any> = {}
+app.component(
+ key,
+ defineComponent({
+ ...aliases[key],
+ name: key,
+ aliasName: aliases[key].name
+ })
+)
import { installAppCompatProperties } from './compat/global'
import { NormalizedPropsOptions } from './componentProps'
import { ObjectEmitsOptions } from './componentEmits'
+import { DefineComponent } from './apiDefineComponent'
export interface App<HostElement = any> {
version: string
mixin(mixin: ComponentOptions): this
component(name: string): Component | undefined
- component(name: string, component: Component): this
+ component(name: string, component: Component | DefineComponent): this
directive(name: string): Directive | undefined
directive(name: string, directive: Directive): this
mount(