diff --git a/.changeset/strong-buttons-juggle.md b/.changeset/strong-buttons-juggle.md new file mode 100644 index 000000000000..4a605f8051f8 --- /dev/null +++ b/.changeset/strong-buttons-juggle.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: typo in `Action` types diff --git a/packages/svelte/src/action/public.d.ts b/packages/svelte/src/action/public.d.ts index 5d23b4d608b6..94669ff1fdb8 100644 --- a/packages/svelte/src/action/public.d.ts +++ b/packages/svelte/src/action/public.d.ts @@ -48,7 +48,7 @@ export interface ActionReturn< * // ... * } * ``` - * `Action` and `Action` both signal that the action accepts no parameters. + * `Action` and `Action` 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. diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index 49ff2db8ceab..4e57607efc9f 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -546,7 +546,7 @@ declare module 'svelte/action' { * // ... * } * ``` - * `Action` and `Action` both signal that the action accepts no parameters. + * `Action` and `Action` 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.