Skip to content

Commit

Permalink
feat(jsx): improve target and formtarget attribute types (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssota authored Aug 20, 2024
1 parent c378dd9 commit 54dab7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/jsx/intrinsic-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ export namespace JSX {
media?: string | undefined
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
shape?: string | undefined
target?: string | undefined
target?: HTMLAttributeAnchorTarget | undefined
}

interface BaseHTMLAttributes extends HTMLAttributes {
href?: string | undefined
target?: string | undefined
target?: HTMLAttributeAnchorTarget | undefined
}

interface BlockquoteHTMLAttributes extends HTMLAttributes {
Expand All @@ -244,7 +244,7 @@ export namespace JSX {
formenctype?: string | undefined
formmethod?: string | undefined
formnovalidate?: boolean | undefined
formtarget?: string | undefined
formtarget?: HTMLAttributeAnchorTarget | undefined
name?: string | undefined
type?: 'submit' | 'reset' | 'button' | undefined
value?: string | ReadonlyArray<string> | number | undefined
Expand Down Expand Up @@ -304,7 +304,7 @@ export namespace JSX {
method?: string | undefined
name?: string | undefined
novalidate?: boolean | undefined
target?: string | undefined
target?: HTMLAttributeAnchorTarget | undefined

// React 19 compatibility
action?: string | Function | undefined
Expand Down Expand Up @@ -383,7 +383,7 @@ export namespace JSX {
formenctype?: string | undefined
formmethod?: string | undefined
formnovalidate?: boolean | undefined
formtarget?: string | undefined
formtarget?: HTMLAttributeAnchorTarget | undefined
height?: number | string | undefined
list?: string | undefined
max?: number | string | undefined
Expand Down

0 comments on commit 54dab7e

Please sign in to comment.