Skip to content

Commit

Permalink
fix(element): add fallback props for jsx, fix koishijs/koishi#1345
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 26, 2024
1 parent 3ea40ef commit 4486656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/element/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/element/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -31,6 +32,7 @@ declare global {
}

interface ResourceElement {
[key: string]: any
src?: string
title?: string
width?: string | number
Expand Down

0 comments on commit 4486656

Please sign in to comment.