UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

20 lines 592 B
/** * Hydrate all islands with the given handlers */ export declare function hydrateIslands(handlers: IslandHandlers): void; /** * Add preload links for island scripts */ export declare function preloadIslandHandlers(handlers: IslandHandlers): void; /** * Client-side hydration functionality for stx templates * This file is meant to be used in the browser only */ /** * Island handler registry */ declare type IslandHandlers = Record<string, () => Promise<any>> /** * Island hydration function */ declare type IslandHydrationFn = (element: any, props: any) => void | Promise<void>