linktree/node_modules/preact/compat/client.d.ts

14 lines
401 B
TypeScript
Raw Normal View History

2025-06-16 13:37:14 +02:00
// Intentionally not using a relative path to take advantage of
// the TS version resolution mechanism
import * as preact from 'preact';
export function createRoot(container: preact.ContainerNode): {
render(children: preact.ComponentChild): void;
unmount(): void;
};
export function hydrateRoot(
container: preact.ContainerNode,
children: preact.ComponentChild
): ReturnType<typeof createRoot>;