initial jsx support
This commit is contained in:
parent
2301c5d631
commit
11be5e979c
7 changed files with 77 additions and 30 deletions
20
src/global.d.ts
vendored
Normal file
20
src/global.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue