32c63a2628
* Add support for per-file jsx pragmas * Add error for using jsx factory pragma with fragments * More tests, use different regex class for pragma capture * Unify all pragma parsing machinery
20 lines
398 B
TypeScript
20 lines
398 B
TypeScript
// @jsx: react
|
|
// @jsxFactory: p
|
|
// @filename: renderer.d.ts
|
|
declare global {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
[e: string]: any;
|
|
}
|
|
}
|
|
}
|
|
export function dom(): void;
|
|
export { dom as p };
|
|
// @filename: reacty.tsx
|
|
/** @jsx dom */
|
|
import {dom} from "./renderer";
|
|
<h></h>
|
|
// @filename: index.tsx
|
|
import { p } from "./renderer";
|
|
<h></h>
|