mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 05:55:11 +00:00
14 lines
401 B
TypeScript
14 lines
401 B
TypeScript
// 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>;
|