1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00
denoland-deno/cli/tests/testdata/jsx/jsx-precompile/index.ts
Bartek Iwańczuk 587f2e0800
feat: precompile JSX (#20962)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-11-01 20:30:23 +00:00

23 lines
627 B
TypeScript

// deno-lint-ignore-file no-explicit-any
export function jsx(
_type: any,
_props: any,
_key: any,
_source: any,
_self: any,
) {}
// deno-lint-ignore-file no-explicit-any
export const jsxAttr = (name: string, value: any) => `${name}="${value}"`;
// deno-lint-ignore-file no-explicit-any
export const jsxTemplate = (_template: string[], ..._exprs: any[]) => "";
// deno-lint-ignore-file no-explicit-any
export const jsxEscape = (_value: any) => "";
console.log("imported", import.meta.url);
declare global {
namespace JSX {
interface IntrinsicElements {
[tagName: string]: Record<string, any>;
}
}
}