UNPKG

solid-js

Version:

A declarative JavaScript library for building user interfaces.

25 lines (24 loc) 709 B
import { Computation } from "../reactive/signal.js"; export type HydrationContext = { id: string; count: number; }; type SharedConfig = { context?: HydrationContext; resources?: { [key: string]: any; }; load?: (id: string) => Promise<any> | any; has?: (id: string) => boolean; gather?: (key: string) => void; registry?: Map<string, Element>; done?: boolean; count?: number; effects?: Computation<any, any>[]; getContextId(): string; getNextContextId(): string; }; export declare const sharedConfig: SharedConfig; export declare function setHydrateContext(context?: HydrationContext): void; export declare function nextHydrateContext(): HydrationContext | undefined; export {};