ERROR_CAPTURED = 'ec'
}
-type Emit = ((event: string, ...args: unknown[]) => void)
+export type Emit = ((event: string, ...args: unknown[]) => void)
export interface SetupContext {
attrs: Data
-import { ComponentInternalInstance, Data } from './component'
+import { ComponentInternalInstance, Data, Emit } from './component'
import { nextTick } from './scheduler'
import { instanceWatch } from './apiWatch'
import { EMPTY_OBJ, hasOwn, isGloballyWhitelisted } from '@vue/shared'
$slots: Data
$root: ComponentInternalInstance | null
$parent: ComponentInternalInstance | null
- $emit: (event: string, ...args: unknown[]) => void
+ $emit: Emit
$el: any
$options: any
$forceUpdate: ReactiveEffect