Skip to content

Commit

Permalink
fix: typo in Action types (#13874)
Browse files Browse the repository at this point in the history
* typo: HTMLDiveElement

* regenerate types

* add changeset

---------

Co-authored-by: Conduitry <[email protected]>
  • Loading branch information
matthewCmatt and Conduitry authored Oct 25, 2024
1 parent 18e2284 commit 1a6a3e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-buttons-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: typo in `Action` types
2 changes: 1 addition & 1 deletion packages/svelte/src/action/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1a6a3e7

Please sign in to comment.