Skip to content

Commit ff53e7d

Browse files
authored
chore: use satisfies keyword in jsdocs, in create-svelte default template (#10203)
1 parent 556b832 commit ff53e7d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/late-eggs-smash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-svelte': patch
3+
---
4+
5+
chore: use satisfies keyword in jsdocs, in create-svelte default template

packages/create-svelte/templates/default/src/routes/sverdle/+page.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fail } from '@sveltejs/kit';
22
import { Game } from './game';
33
import type { PageServerLoad, Actions } from './$types';
44

5-
/** @type {import('./$types').PageServerLoad} */
5+
/** @satisfies {import('./$types').PageServerLoad} */
66
export const load = (({ cookies }) => {
77
const game = new Game(cookies.get('sverdle'));
88

@@ -25,7 +25,7 @@ export const load = (({ cookies }) => {
2525
};
2626
}) satisfies PageServerLoad;
2727

28-
/** @type {import('./$types').Actions} */
28+
/** @satisfies {import('./$types').Actions} */
2929
export const actions = {
3030
/**
3131
* Modify game state in reaction to a keypress. If client-side JavaScript

0 commit comments

Comments
 (0)