Revert "feat: enable TS autocomplete for Svelte HTML element definitions" (#16063)

* Revert "feat: enable TS autocomplete for Svelte HTML element definitions (#15…"

This reverts commit 6928aaca06.

* changeset
pull/16068/head
Rich Harris 3 months ago committed by GitHub
parent 77a5d68675
commit b851b54e9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
Revert "feat: enable TS autocomplete for Svelte HTML element definitions"

@ -2066,7 +2066,7 @@ export interface SvelteHTMLElements {
failed?: import('svelte').Snippet<[error: unknown, reset: () => void]>;
};
[name: string & {}]: { [name: string]: any };
[name: string]: { [name: string]: any };
}
export type ClassValue = string | import('clsx').ClassArray | import('clsx').ClassDictionary;

@ -8,7 +8,7 @@ import * as svelteElements from './elements.js';
/**
* @internal do not use
*/
type HTMLProps<Property extends keyof svelteElements.SvelteHTMLElements, Override> = Omit<
type HTMLProps<Property extends string, Override> = Omit<
import('./elements.js').SvelteHTMLElements[Property],
keyof Override
> &
@ -250,7 +250,7 @@ declare global {
};
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
[name: string & {}]: { [name: string]: any };
[name: string]: { [name: string]: any };
}
}
}

Loading…
Cancel
Save