fix: typo in `Action` types (#13874)

* typo: HTMLDiveElement

* regenerate types

* add changeset

---------

Co-authored-by: Conduitry <git@chor.date>
pull/13927/head
Matthew Carroll 2 months ago committed by GitHub
parent 18e2284e74
commit 1a6a3e7ebd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: typo in `Action` types

@ -48,7 +48,7 @@ export interface ActionReturn<
* // ...
* }
* ```
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
*
* You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
* See interface `ActionReturn` for more details.

@ -546,7 +546,7 @@ declare module 'svelte/action' {
* // ...
* }
* ```
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
*
* You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
* See interface `ActionReturn` for more details.

Loading…
Cancel
Save