Consolidate TypeScript html type definitions
#16425The whole IntrinsicElements
and HTMLAttributes/SVGAttributes
interfaces are kind of obsolete now since you can enhance the typings via the types from elements.d.ts
. Remove them in Svelte 6
Also the Document/Window interfaces in elements.d.ts
enhance HTMLAttributes
which means the types say you can put all these global attributes on <svelte:window/document />
which is wrong. We should make them extend them from DomAttributes
instead.
see above
nice to have