You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re: implicit conversion for DOM APIs, myInput.selectionStart = document.querySelector("input[type=number]")?.value is assigning a string, but per this MDN page it's guaranteed to be one that coerces correctly to a number (or the empty string). Your "gross, beautiful" solution would let that work, I think.
(window.innerWidth is readonly, but HTMLInputElement#selectionStart is not, and allows number | null.)
Separate Get/Set Types and Modifiers
#42425
set: T
,get: undefined | T
?T
missing
is..d.ts
emit?window.innerWidth = "100"
? (we don't know if it works this way, but whatever)`${number}`
?set value(p: number | `${number}`)
?window.innerWidth = 100
?The text was updated successfully, but these errors were encountered: