initial jsx support

This commit is contained in:
laura 2025-11-01 14:50:30 -03:00
parent 2301c5d631
commit 11be5e979c
Signed by: w
GPG key ID: BCD2117C99E69817
7 changed files with 77 additions and 30 deletions

20
src/global.d.ts vendored Normal file
View file

@ -0,0 +1,20 @@
/**
* Copyright (c) 2025 xwra
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/// <reference types="interest/jsx-runtime" />
import type { ChunkedStream } from "./stream.ts";
declare global {
namespace JSX {
type Element = (chunks: ChunkedStream<string>) => Promise<void>;
interface IntrinsicElements {
[key: string]: ElementProps;
}
interface ElementProps {
[key: string]: any;
}
}
}