v3.d.ts 381 B

12345678910111213
  1. import { VNode } from './vnode'
  2. import { CreateElement, Vue } from './vue'
  3. export interface SetupContext {
  4. attrs: Record<string, any>
  5. slots: Record<string, (() => VNode[]) | undefined>
  6. emit: (event: string, ...args: any[]) => any
  7. expose: (exposed?: Record<string, any>) => void
  8. }
  9. export function getCurrentInstance(): { proxy: Vue } | null
  10. export const h: CreateElement