You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
504 B
TypeScript

// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
import { user } from '$lib/db/schema'
import type { InferSelectModel } from 'drizzle-orm'
declare global {
namespace App {
// interface Error {}
interface Locals {
user: Omit<InferSelectModel<typeof user>, 'password'>
session: {
id: string
userId: string
expiresAt: number
} | null
}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {}