Consolidate TypeScript html type definitions

#16425

Issue

Open
D
dummdidumm
Jul 17, 2025, 4:05 PM

Describe the problem

The 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.

Describe the proposed solution

see above

Importance

nice to have

Info

Assignees None
Labels breaking change
Milestone 6.0