Skip to content

Commit

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

* fix format error
  • Loading branch information
codehz authored and TinsFox committed Oct 28, 2024
1 parent 36950c1 commit c83cac8
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 c83cac8

Please sign in to comment.