From 4486656c3eb556ff645fe3aa2d9b25b2d14afe80 Mon Sep 17 00:00:00 2001 From: Shigma Date: Fri, 26 Jan 2024 21:56:10 +0800 Subject: [PATCH] fix(element): add fallback props for jsx, fix koishijs/koishi#1345 --- packages/element/package.json | 2 +- packages/element/src/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/element/package.json b/packages/element/package.json index bbc1a031..24f777e9 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -1,7 +1,7 @@ { "name": "@satorijs/element", "description": "Element Manipulation", - "version": "3.1.2", + "version": "3.1.4", "main": "lib/index.cjs", "module": "lib/index.mjs", "types": "lib/index.d.ts", diff --git a/packages/element/src/index.ts b/packages/element/src/index.ts index b8dfc807..3ae36ba1 100644 --- a/packages/element/src/index.ts +++ b/packages/element/src/index.ts @@ -3,6 +3,7 @@ import { arrayBufferToBase64, Awaitable, camelize, defineProperty, Dict, hyphena declare global { namespace JSX { interface IntrinsicElements { + [key: string]: any message: { id?: string forward?: boolean @@ -31,6 +32,7 @@ declare global { } interface ResourceElement { + [key: string]: any src?: string title?: string width?: string | number