summaryrefslogtreecommitdiff
path: root/tests/specs/run/jsx_import_source_error/jsx/jsx-precompile/index.ts
blob: 0d56095e0bd3e01cf6bf4d8d8f75621f8aab5c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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>;
    }
  }
}