Skip to content

Commit c440621

Browse files
authored
[fix] type definition update for typescript 4.8 (#6306)
1 parent 8062a79 commit c440621

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/two-pianos-stare.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-svelte': patch
3+
---
4+
5+
fix type definition issue that caused a svelte-check error when using TS 4.8

packages/create-svelte/templates/default/src/lib/form.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { invalidate } from '$app/navigation';
2626
* response: Response;
2727
* form: HTMLFormElement;
2828
* }) => void;
29-
* }} [opts]
29+
* }} opts
3030
*/
3131
export function enhance(
3232
form: HTMLFormElement,

0 commit comments

Comments
 (0)