UNPKG

vue-hooks-env

Version:

TypeScript and TSX Env for Vue Composition Api

7 lines (6 loc) 457 B
import { VNode } from 'vue'; import { DomEvent, HTMLAttributes } from '../types'; import { EventBase, HookContext, Intersection, SlotBase, VC } from './HC'; export declare function HFC<P, A = HTMLAttributes, E extends EventBase = {}, S extends SlotBase = { default?: () => VNode[]; }>(func: (this: void, props: P, ctx: HookContext<Omit<A, keyof P>, Intersection<E, DomEvent>, S>) => VNode | null, props?: Array<keyof P>, name?: string): VC<P, A, E, S>;