Skip to content
Myr

feat(jsx): improve `target` and `formtarget` attribute types (#3299)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TOMIKAWA Sotaro · committed by GitHub · parent c378dd9 · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:src/jsx/intrinsic-elements.ts+5 added-5 removed
224 unmodified lines
225 hreflang?: string | undefined226 media?: string | undefined227 referrerpolicy?: HTMLAttributeReferrerPolicy | undefined228 shape?: string | undefined229 target?: string | undefined229 target?: HTMLAttributeAnchorTarget | undefined230 }231232 interface BaseHTMLAttributes extends HTMLAttributes {233 href?: string | undefined234 target?: string | undefined234 target?: HTMLAttributeAnchorTarget | undefined235 }236237 interface BlockquoteHTMLAttributes extends HTMLAttributes {238 cite?: string | undefined
4 unmodified lines
243 form?: string | undefined244 formenctype?: string | undefined245 formmethod?: string | undefined246 formnovalidate?: boolean | undefined247 formtarget?: string | undefined247 formtarget?: HTMLAttributeAnchorTarget | undefined248 name?: string | undefined249 type?: 'submit' | 'reset' | 'button' | undefined250 value?: string | ReadonlyArray<string> | number | undefined251
51 unmodified lines
303 enctype?: string | undefined304 method?: string | undefined305 name?: string | undefined306 novalidate?: boolean | undefined307 target?: string | undefined307 target?: HTMLAttributeAnchorTarget | undefined308309 // React 19 compatibility310 action?: string | Function | undefined311 }
70 unmodified lines
382 form?: string | undefined383 formenctype?: string | undefined384 formmethod?: string | undefined385 formnovalidate?: boolean | undefined386 formtarget?: string | undefined386 formtarget?: HTMLAttributeAnchorTarget | undefined387 height?: number | string | undefined388 list?: string | undefined389 max?: number | string | undefined390 maxlength?: number | undefined
449 unmodified lines