Update packages/svelte/types/index.d.ts

pull/11775/head
Simon H 2 years ago committed by GitHub
parent 8311e3e1b7
commit 984b5c5880
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +1,6 @@
declare module 'svelte' { declare module 'svelte' {
/** /**
* @deprecated Svelte components were classes in Svelte 4. In Svelte 5, they are not anymore. * @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
* Use `mount` or `createRoot` instead to instantiate components. * Use `mount` or `createRoot` instead to instantiate components.
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) * See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes)
* for more info. * for more info.

Loading…
Cancel
Save