UNPKG

@islands/hydration

Version:

Hydration utilities for îles

14 lines (10 loc) 660 B
import { DefineComponent } from 'vue'; declare function createVueIsland(component: DefineComponent, id: string, el: Element, props: Props, slots: Slots | undefined): void; type Framework = 'vue' | 'preact' | 'solid' | 'svelte' | 'vanilla'; type FrameworkFn = typeof createVueIsland; type AsyncFrameworkFn = () => Promise<FrameworkFn>; type Component = any; type AsyncComponent = () => Component; type Props = Record<string, unknown>; type Slots = Record<string, string>; export { type AsyncFrameworkFn as A, type Component as C, type FrameworkFn as F, type Props as P, type Slots as S, type AsyncComponent as a, type Framework as b, createVueIsland as c };