app.d.ts 663 B

1234567891011121314151617181920212223242526
  1. // See https://svelte.dev/docs/kit/types#app.d.ts
  2. import type { User } from '$lib/types/user';
  3. import type { Workspace } from '$lib/types/workspace';
  4. // for information about these interfaces
  5. declare global {
  6. namespace App {
  7. interface Error {
  8. /** Machine-readable error code, e.g. 'NOT_FOUND', 'VALIDATION_ERROR'. */
  9. code: string;
  10. /** Human-readable message safe to display to the user. */
  11. message: string;
  12. }
  13. interface Locals {
  14. requestId: string;
  15. workspaceId: string | null;
  16. workspace: Workspace | undefined;
  17. user: User | null;
  18. }
  19. // interface PageData {}
  20. // interface PageState {}
  21. // interface Platform {}
  22. }
  23. }
  24. export {};