import type { User } from "$lib/server/users"; import type { S3Client } from "@aws-sdk/client-s3"; import type BeanstalkdClient from "beanstalkd"; import type { PoolClient } from "pg"; // See https://svelte.dev/docs/kit/types#app.d.ts // for information about these interfaces declare global { namespace App { // interface Error {} interface Locals { dbClient: PoolClient; s3Client: S3Client; beanstalkdClient: BeanstalkdClient; /** * The user, if they are logged in. * * Each page (or group) must have a `load` handler (in `+page.server.ts`) which * ensures that `user` is defined, optionally redirecting to `/login?redirectTo` * if they need to ensure this is defined. */ user?: User; } // interface PageData {} // interface PageState {} // interface Platform {} } } export {};