UNPKG

@islands/hydration

Version:

Hydration utilities for îles

10 lines (7 loc) 480 B
import { P as Props, S as Slots, C as Component } from './types-CmUBzf0a.js'; import 'vue'; type MaybeAsync<T> = T | Promise<T>; type OnDisposeFn = () => void; type OnLoadFn = (el: Element, props: Props, slots: Slots | undefined) => MaybeAsync<void | OnDisposeFn>; declare function createIsland(component: Component | OnLoadFn, id: string, el: Element, props: Props, slots: Slots | undefined): Promise<void>; export { type OnDisposeFn, type OnLoadFn, createIsland as default };