Skip to content

Typescript renders incorrectly in documentation example #647

@jonstodle

Description

@jonstodle

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions