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

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/11775/head
Simon H 2 years ago committed by GitHub
parent c9a19e4362
commit 8311e3e1b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3,7 +3,7 @@
import './ambient.js'; import './ambient.js';
/** /**
* @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