feat: enable TS autocomplete for Svelte HTML element definitions

pull/15972/head
venus 4 months ago
parent 7183886a73
commit e299432caf

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

@ -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 // 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