mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
26 lines
493 B
TypeScript
26 lines
493 B
TypeScript
// @jsx: react
|
|
// @filename: renderer.d.ts
|
|
declare global {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
[e: string]: any;
|
|
}
|
|
}
|
|
}
|
|
export function h(): void;
|
|
export function jsx(): void;
|
|
export function Fragment(): void;
|
|
|
|
// @filename: preacty.tsx
|
|
/**
|
|
* @jsx h
|
|
* @jsxFrag Fragment
|
|
*/
|
|
import {h, Fragment} from "./renderer";
|
|
<><div></div></>
|
|
|
|
// @filename: snabbdomy.tsx
|
|
/* @jsx jsx */
|
|
/* @jsxfrag null */
|
|
import {jsx} from "./renderer";
|
|
<><span></span></> |