Skip to content

Commit

Permalink
types: Re-add missing properties & property casings (#4554)
Browse files Browse the repository at this point in the history
* fix: Ensure our new property types support all intended casings

* fix: Re-add missing properties
  • Loading branch information
rschristian authored Nov 12, 2024
1 parent e7610ef commit bedd413
Showing 1 changed file with 70 additions and 3 deletions.
73 changes: 70 additions & 3 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,8 @@ export namespace JSXInternal {

// Non-standard Attributes
disablePictureInPicture?: Signalish<boolean | undefined>;
elementtiming?: Signalish<string | undefined>;
elementTiming?: Signalish<string | undefined>;
results?: Signalish<number | undefined>;

// RDFa Attributes
Expand Down Expand Up @@ -1539,8 +1541,10 @@ export namespace JSXInternal {
hrefLang?: Signalish<string | undefined>;
media?: Signalish<string | undefined>;
ping?: Signalish<string | undefined>;
rel?: Signalish<string | undefined>;
target?: Signalish<HTMLAttributeAnchorTarget | undefined>;
type?: Signalish<string | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
}

Expand All @@ -1552,7 +1556,9 @@ export namespace JSXInternal {
href?: Signalish<string | undefined>;
hrefLang?: Signalish<string | undefined>;
media?: Signalish<string | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
rel?: Signalish<string | undefined>;
shape?: Signalish<string | undefined>;
target?: Signalish<string | undefined>;
}
Expand All @@ -1575,10 +1581,15 @@ export namespace JSXInternal {
extends HTMLAttributes<T> {
disabled?: Signalish<boolean | undefined>;
form?: Signalish<string | undefined>;
formaction?: Signalish<string | undefined>;
formAction?: Signalish<string | undefined>;
formenctype?: Signalish<string | undefined>;
formEncType?: Signalish<string | undefined>;
formmethod?: Signalish<string | undefined>;
formMethod?: Signalish<string | undefined>;
formnovalidate?: Signalish<boolean | undefined>;
formNoValidate?: Signalish<boolean | undefined>;
formtarget?: Signalish<string | undefined>;
formTarget?: Signalish<string | undefined>;
name?: Signalish<string | undefined>;
popovertarget?: Signalish<string | undefined>;
Expand Down Expand Up @@ -1612,6 +1623,7 @@ export namespace JSXInternal {

interface DelHTMLAttributes<T extends EventTarget> extends HTMLAttributes<T> {
cite?: Signalish<string | undefined>;
datetime: Signalish<string | undefined>;
dateTime?: Signalish<string | undefined>;
}

Expand Down Expand Up @@ -1645,13 +1657,18 @@ export namespace JSXInternal {

interface FormHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
'accept-charset'?: Signalish<string | undefined>;
acceptCharset?: Signalish<string | undefined>;
action?: Signalish<string | undefined>;
autocomplete?: Signalish<string | undefined>;
autoComplete?: Signalish<string | undefined>;
enctype?: Signalish<string | undefined>;
encType?: Signalish<string | undefined>;
method?: Signalish<string | undefined>;
name?: Signalish<string | undefined>;
novalidate?: Signalish<boolean | undefined>;
noValidate?: Signalish<boolean | undefined>;
rel?: Signalish<string | undefined>;
target?: Signalish<string | undefined>;
}

Expand All @@ -1661,6 +1678,8 @@ export namespace JSXInternal {
allowFullScreen?: Signalish<boolean | undefined>;
allowTransparency?: Signalish<boolean | undefined>;
/** @deprecated */
frameborder?: Signalish<number | string | undefined>;
/** @deprecated */
frameBorder?: Signalish<number | string | undefined>;
height?: Signalish<number | string | undefined>;
loading?: 'eager' | 'lazy' | undefined;
Expand All @@ -1669,12 +1688,14 @@ export namespace JSXInternal {
/** @deprecated */
marginWidth?: Signalish<number | undefined>;
name?: Signalish<string | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
sandbox?: Signalish<string | undefined>;
/** @deprecated */
scrolling?: Signalish<string | undefined>;
seamless?: Signalish<boolean | undefined>;
src?: Signalish<string | undefined>;
srcdoc?: Signalish<string | undefined>;
srcDoc?: Signalish<string | undefined>;
width?: Signalish<number | string | undefined>;
}
Expand All @@ -1683,14 +1704,18 @@ export namespace JSXInternal {

interface ImgHTMLAttributes<T extends EventTarget> extends HTMLAttributes<T> {
alt?: Signalish<string | undefined>;
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
decoding?: Signalish<'async' | 'auto' | 'sync' | undefined>;
height?: Signalish<number | string | undefined>;
loading?: Signalish<'eager' | 'lazy' | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
sizes?: Signalish<string | undefined>;
src?: Signalish<string | undefined>;
srcset?: Signalish<string | undefined>;
srcSet?: Signalish<string | undefined>;
usemap?: Signalish<string | undefined>;
useMap?: Signalish<string | undefined>;
width?: Signalish<number | string | undefined>;
}
Expand Down Expand Up @@ -1724,9 +1749,12 @@ export namespace JSXInternal {
extends HTMLAttributes<T> {
accept?: Signalish<string | undefined>;
alt?: Signalish<string | undefined>;
autocomplete?: Signalish<string | undefined>;
autoComplete?: Signalish<string | undefined>;
capture?: Signalish<'user' | 'environment' | undefined>; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
checked?: Signalish<boolean | undefined>;
defaultChecked?: Signalish<boolean | undefined>;
defaultValue?: Signalish<string | undefined>;
disabled?: Signalish<boolean | undefined>;
enterKeyHint?: Signalish<
| 'enter'
Expand All @@ -1739,21 +1767,30 @@ export namespace JSXInternal {
| undefined
>;
form?: Signalish<string | undefined>;
formaction?: Signalish<string | undefined>;
formAction?: Signalish<string | undefined>;
formenctype?: Signalish<string | undefined>;
formEncType?: Signalish<string | undefined>;
formmethod?: Signalish<string | undefined>;
formMethod?: Signalish<string | undefined>;
formnovalidate?: Signalish<boolean | undefined>;
formNoValidate?: Signalish<boolean | undefined>;
formtarget?: Signalish<string | undefined>;
formTarget?: Signalish<string | undefined>;
height?: Signalish<number | string | undefined>;
indeterminate?: Signalish<boolean | undefined>;
list?: Signalish<string | undefined>;
max?: Signalish<string | undefined>;
maxlength?: Signalish<number | undefined>;
maxLength?: Signalish<number | undefined>;
min?: Signalish<string | undefined>;
minlength?: Signalish<number | undefined>;
minLength?: Signalish<number | undefined>;
multiple?: Signalish<boolean | undefined>;
name?: Signalish<string | undefined>;
pattern?: Signalish<string | undefined>;
placeholder?: Signalish<string | undefined>;
readonly?: Signalish<boolean | undefined>;
readOnly?: Signalish<boolean | undefined>;
required?: Signalish<boolean | undefined>;
size?: Signalish<number | undefined>;
Expand All @@ -1767,6 +1804,7 @@ export namespace JSXInternal {

interface InsHTMLAttributes<T extends EventTarget> extends HTMLAttributes<T> {
cite?: Signalish<string | undefined>;
datetime?: Signalish<string | undefined>;
dateTime?: Signalish<string | undefined>;
}

Expand All @@ -1782,6 +1820,7 @@ export namespace JSXInternal {

interface LabelHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
for?: Signalish<string | undefined>;
form?: Signalish<string | undefined>;
htmlFor?: Signalish<string | undefined>;
}
Expand All @@ -1793,16 +1832,21 @@ export namespace JSXInternal {
interface LinkHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
as?: Signalish<string | undefined>;
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
fetchPriority?: Signalish<'high' | 'low' | 'auto'>;
href?: Signalish<string | undefined>;
hreflang?: Signalish<string | undefined>;
hrefLang?: Signalish<string | undefined>;
integrity?: Signalish<string | undefined>;
media?: Signalish<string | undefined>;
imageSrcSet?: Signalish<string | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
rel?: Signalish<string | undefined>;
sizes?: Signalish<string | undefined>;
type?: Signalish<string | undefined>;
charset?: Signalish<string | undefined>;
charSet?: Signalish<string | undefined>;
}

Expand All @@ -1827,16 +1871,20 @@ export namespace JSXInternal {

interface MediaHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
autoplay?: Signalish<boolean | undefined>;
autoPlay?: Signalish<boolean | undefined>;
controls?: Signalish<boolean | undefined>;
controlsList?: Signalish<string | undefined>;
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
loop?: Signalish<boolean | undefined>;
mediaGroup?: Signalish<string | undefined>;
muted?: Signalish<boolean | undefined>;
playsinline?: Signalish<boolean | undefined>;
playsInline?: Signalish<boolean | undefined>;
preload?: Signalish<string | undefined>;
src?: Signalish<string | undefined>;
volume?: Signalish<string | number | undefined>;
}

interface MenuHTMLAttributes<T extends EventTarget>
Expand All @@ -1846,7 +1894,10 @@ export namespace JSXInternal {

interface MetaHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
charset?: Signalish<string | undefined>;
charSet?: Signalish<string | undefined>;
content?: Signalish<string | undefined>;
'http-equiv'?: Signalish<string | undefined>;
httpEquiv?: Signalish<string | undefined>;
name?: Signalish<string | undefined>;
media?: Signalish<string | undefined>;
Expand All @@ -1871,6 +1922,7 @@ export namespace JSXInternal {
height?: Signalish<number | string | undefined>;
name?: Signalish<string | undefined>;
type?: Signalish<string | undefined>;
usemap?: Signalish<string | undefined>;
useMap?: Signalish<string | undefined>;
width?: Signalish<number | string | undefined>;
wmode?: Signalish<string | undefined>;
Expand Down Expand Up @@ -1898,6 +1950,7 @@ export namespace JSXInternal {

interface OutputHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
for?: Signalish<string | undefined>;
form?: Signalish<string | undefined>;
htmlFor?: Signalish<string | undefined>;
name?: Signalish<string | undefined>;
Expand All @@ -1924,18 +1977,24 @@ export namespace JSXInternal {
extends HTMLAttributes<T> {
async?: Signalish<boolean | undefined>;
/** @deprecated */
charset?: Signalish<string | undefined>;
/** @deprecated */
charSet?: Signalish<string | undefined>;
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
defer?: Signalish<boolean | undefined>;
integrity?: Signalish<string | undefined>;
nomodule?: Signalish<boolean | undefined>;
noModule?: Signalish<boolean | undefined>;
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
src?: Signalish<string | undefined>;
type?: Signalish<string | undefined>;
}

interface SelectHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
autocomplete?: Signalish<string | undefined>;
autoComplete?: Signalish<string | undefined>;
disabled?: Signalish<boolean | undefined>;
form?: Signalish<string | undefined>;
Expand All @@ -1958,6 +2017,7 @@ export namespace JSXInternal {
media?: Signalish<string | undefined>;
sizes?: Signalish<string | undefined>;
src?: Signalish<string | undefined>;
srcset?: Signalish<string | undefined>;
srcSet?: Signalish<string | undefined>;
type?: Signalish<string | undefined>;
width?: Signalish<number | string | undefined>;
Expand All @@ -1982,8 +2042,10 @@ export namespace JSXInternal {
align?: Signalish<
'left' | 'center' | 'right' | 'justify' | 'char' | undefined
>;
colspan?: Signalish<number | undefined>;
colSpan?: Signalish<number | undefined>;
headers?: Signalish<string | undefined>;
rowspan?: Signalish<number | undefined>;
rowSpan?: Signalish<number | undefined>;
scope?: Signalish<string | undefined>;
abbr?: Signalish<string | undefined>;
Expand All @@ -1994,12 +2056,15 @@ export namespace JSXInternal {

interface TextareaHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
autocomplete?: Signalish<string | undefined>;
autoComplete?: Signalish<string | undefined>;
cols?: Signalish<number | undefined>;
dirName?: Signalish<string | undefined>;
disabled?: Signalish<boolean | undefined>;
form?: Signalish<string | undefined>;
maxlength?: Signalish<number | undefined>;
maxLength?: Signalish<number | undefined>;
minlength?: Signalish<number | undefined>;
minLength?: Signalish<number | undefined>;
name?: Signalish<string | undefined>;
placeholder?: Signalish<string | undefined>;
Expand All @@ -2015,31 +2080,33 @@ export namespace JSXInternal {
align?: Signalish<
'left' | 'center' | 'right' | 'justify' | 'char' | undefined
>;
colspan?: Signalish<number | undefined>;
colSpan?: Signalish<number | undefined>;
headers?: Signalish<string | undefined>;
rowspan?: Signalish<number | undefined>;
rowSpan?: Signalish<number | undefined>;
scope?: Signalish<string | undefined>;
abbr?: Signalish<string | undefined>;
}

interface TimeHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
datetime?: Signalish<string | undefined>;
dateTime?: Signalish<string | undefined>;
}

interface TrackHTMLAttributes<T extends EventTarget>
extends HTMLAttributes<T> {
extends MediaHTMLAttributes<T> {
default?: Signalish<boolean | undefined>;
kind?: Signalish<string | undefined>;
label?: Signalish<string | undefined>;
src?: Signalish<string | undefined>;
srclang?: Signalish<string | undefined>;
srcLang?: Signalish<string | undefined>;
}

interface VideoHTMLAttributes<T extends EventTarget>
extends MediaHTMLAttributes<T> {
height?: Signalish<number | string | undefined>;
playsInline?: Signalish<boolean | undefined>;
poster?: Signalish<string | undefined>;
width?: Signalish<number | string | undefined>;
disablePictureInPicture?: Signalish<boolean | undefined>;
Expand Down

0 comments on commit bedd413

Please sign in to comment.