Switch to svelteHTML.IntrinsicElements for proper handling of additions like sveltekit:prefetch

Fixes #95
This commit is contained in:
Ryan Gossiaux
2022-05-24 13:52:22 -07:00
parent d3ca4e8630
commit 4b4e08d13b

View File

@@ -26,7 +26,7 @@ export enum Features {
export type TRestProps<T> = T extends SupportedElement export type TRestProps<T> = T extends SupportedElement
? Omit< ? Omit<
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap[T]>, svelteHTML.IntrinsicElements[T],
"class" | "style" "class" | "style"
> >
: {}; : {};