@islands/hydration
Version:
Hydration utilities for îles
15 lines (14 loc) • 688 B
TypeScript
import { DefineComponent } from "vue";
//#region vue.d.ts
declare function createVueIsland(component: DefineComponent, id: string, el: Element, props: Props, slots: Slots | undefined): void;
//#endregion
//#region types.d.ts
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>;
//#endregion
export { FrameworkFn as a, createVueIsland as c, Framework as i, AsyncFrameworkFn as n, Props as o, Component as r, Slots as s, AsyncComponent as t };