client.d.ts 389 B

12345678910111213
  1. // Intentionally not using a relative path to take advantage of
  2. // the TS version resolution mechanism
  3. import * as preact from 'preact';
  4. export function createRoot(container: preact.ContainerNode): {
  5. render(children: preact.ComponentChild): void;
  6. unmount(): void;
  7. };
  8. export function hydrateRoot(
  9. container: preact.ContainerNode,
  10. children: preact.ComponentChild
  11. ): typeof createRoot;