| 1234567891011121314151617181920212223242526 |
- // See https://svelte.dev/docs/kit/types#app.d.ts
- import type { User } from '$lib/types/user';
- import type { Workspace } from '$lib/types/workspace';
- // for information about these interfaces
- declare global {
- namespace App {
- interface Error {
- /** Machine-readable error code, e.g. 'NOT_FOUND', 'VALIDATION_ERROR'. */
- code: string;
- /** Human-readable message safe to display to the user. */
- message: string;
- }
- interface Locals {
- requestId: string;
- workspaceId: string | null;
- workspace: Workspace | undefined;
- user: User | null;
- }
- // interface PageData {}
- // interface PageState {}
- // interface Platform {}
- }
- }
- export {};
|