Skip to content

Commit 1a6a3e7

Browse files
fix: typo in Action types (#13874)
* typo: HTMLDiveElement * regenerate types * add changeset --------- Co-authored-by: Conduitry <[email protected]>
1 parent 18e2284 commit 1a6a3e7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: typo in `Action` types

packages/svelte/src/action/public.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface ActionReturn<
4848
* // ...
4949
* }
5050
* ```
51-
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
51+
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
5252
*
5353
* You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
5454
* See interface `ActionReturn` for more details.

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ declare module 'svelte/action' {
546546
* // ...
547547
* }
548548
* ```
549-
* `Action<HTMLDivElement>` and `Action<HTMLDiveElement, undefined>` both signal that the action accepts no parameters.
549+
* `Action<HTMLDivElement>` and `Action<HTMLDivElement, undefined>` both signal that the action accepts no parameters.
550550
*
551551
* You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has.
552552
* See interface `ActionReturn` for more details.

0 commit comments

Comments
 (0)