From 58a013bdfc228ed8d2ada4a37eb39da28b3d9da1 Mon Sep 17 00:00:00 2001 From: Brian Gradin Date: Tue, 19 Mar 2024 12:03:18 -0700 Subject: [PATCH] fix: restore Typescript intellisense (#1110) --- src/jsx.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jsx.ts b/src/jsx.ts index 4d4278f..2e1086b 100644 --- a/src/jsx.ts +++ b/src/jsx.ts @@ -100,7 +100,7 @@ export function jsx( } // See https://www.typescriptlang.org/docs/handbook/jsx.html#type-checking -export namespace jsx { +namespace JSXTypes { export type Element = VNode; /* @@ -142,3 +142,9 @@ export namespace jsx { [elemName: string]: VNodeData; } } + +export namespace jsx { + export namespace JSX { + export interface IntrinsicElements extends JSXTypes.IntrinsicElements {} + } +}