-
-
Notifications
You must be signed in to change notification settings - Fork 189
Closed
Labels
Description
Describe the bug
In the Typing section of the use: article in the documentation, the Typescript example is incorrectly rendered. It's missing ;}>
to close the generic parameter to the Action
type.
Is
Action<
HTMLDivElement,
null,
{
onswiperight: (e: CustomEvent) => void;
onswipeleft: (e: CustomEvent) => void
Should be
Action<
HTMLDivElement,
null,
{
onswiperight: (e: CustomEvent) => void;
onswipeleft: (e: CustomEvent) => void;
}>
Reproduction
Vist https://svelte.dev/docs/svelte/use#Typing and view the Typescript version of the example.
Logs
No response
System Info
N/A
Severity
annoyance