-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathapp.d.ts
More file actions
35 lines (30 loc) · 863 Bytes
/
app.d.ts
File metadata and controls
35 lines (30 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint @typescript-eslint/no-unused-vars: 0 */
/// <reference types="@sveltejs/kit" />
declare namespace App {
interface Locals {
user: User | null;
}
interface PublicEnv {
AUTH_TYPE: string;
GATEWAY_CLIENT_URL: string;
GATEWAY_SERVER_URL: string;
HASURA_CLIENT_URL: string;
HASURA_SERVER_URL: string;
HASURA_WEB_SOCKET_URL: string;
ORIGIN: string;
}
interface Session {
user: User | null;
}
}
/**
* Types for svelte-dnd-action.
* @see https://github.com/isaacHagoel/svelte-dnd-action#typescript
*/
declare type DndEvent = import('svelte-dnd-action').DndEvent;
declare namespace svelte.JSX {
interface HTMLAttributes<T> {
onconsider?: (event: CustomEvent<DndEvent> & { target: EventTarget & T }) => void;
onfinalize?: (event: CustomEvent<DndEvent> & { target: EventTarget & T }) => void;
}
}