From 96a67755f516ca144cd47ad6b4a4a9bc66c0eaf8 Mon Sep 17 00:00:00 2001 From: indaco Date: Wed, 2 Feb 2022 18:27:41 +0100 Subject: [PATCH] Create app.d.ts file introduced with 1.0.0-next.257 Add App namespace for app-level types [#3670](https://github.com/sveltejs/kit/pull/3670) --- src/app.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/app.d.ts diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..dd7d358 --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,15 @@ +/// + +// See https://kit.svelte.dev/docs#typescript +// for information about these interfaces +declare namespace App { + interface Locals { + userid: string; + } + + interface Platform {} + + interface Session {} + + interface Stuff {} +}