Skip to content

Commit

Permalink
fix(types): add key to IntrinsicAttributes (#3474)
Browse files Browse the repository at this point in the history
* add key to IntrinsicAttributes

* fix format error
  • Loading branch information
codehz authored Oct 2, 2024
1 parent c0d782c commit 31b4cd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jsx/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> | undefined = undefined
Expand Down

0 comments on commit 31b4cd4

Please sign in to comment.