From 3b1157c4e8429fc2d071cebcadd67e235021a389 Mon Sep 17 00:00:00 2001 From: Udo <589744+ul8@users.noreply.github.com> Date: Sat, 14 Jan 2023 12:11:56 +0100 Subject: [PATCH] rename invalid -> fail see https://github.com/sveltejs/kit/pull/8012 --- snippets/typescript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/typescript.json b/snippets/typescript.json index fe74159..6cff120 100644 --- a/snippets/typescript.json +++ b/snippets/typescript.json @@ -12,7 +12,7 @@ }, "sveltekit+page.server.ts": { "body": [ - "import { error, invalid, redirect } from '@sveltejs/kit'", + "import { error, fail, redirect } from '@sveltejs/kit'", "import type { PageServerLoad, Actions } from './$$types'", "", "export const load: PageServerLoad = async function (${1:event}) {",