From 31b4cd414c258db841cce77473615c13fc611d8b Mon Sep 17 00:00:00 2001 From: Neko Hz Date: Wed, 2 Oct 2024 15:24:46 +0800 Subject: [PATCH] fix(types): add key to IntrinsicAttributes (#3474) * add key to IntrinsicAttributes * fix format error --- src/jsx/base.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jsx/base.ts b/src/jsx/base.ts index 7b184373..bab9c3c9 100644 --- a/src/jsx/base.ts +++ b/src/jsx/base.ts @@ -30,6 +30,9 @@ export namespace JSX { export interface IntrinsicElements extends IntrinsicElementsDefined { [tagName: string]: Props } + export interface IntrinsicAttributes { + key?: string | number | bigint | null | undefined + } } let nameSpaceContext: Context | undefined = undefined