-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
58 lines (48 loc) · 1.21 KB
/
typings.d.ts
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import * as Prisma from "@prisma/client";
import "vite/client";
declare global {
interface ImportMeta {
env: {
BASE_URL: string;
};
}
interface Window {
ethereum: any;
}
namespace NodeJS {
interface ProcessEnv {
JWT_SECRET: string;
COS_SECRET_ID: string;
COS_SECRET_KEY: string;
COS_BUCKET_NAME: string;
COS_BUCKET_REGION: string;
COS_BUCKET_PREFIX: string;
}
}
}
namespace Entity {
interface User extends Prisma.User {
reward?: {
amount: number;
percent: number;
};
}
interface Reward extends Prisma.TaskReward {
dao?: Prisma.Dao;
task?: Prisma.Task;
}
interface Wallet extends Prisma.Wallet {}
interface Dao extends Prisma.Dao {}
interface Task extends Prisma.Task {
key_results: { checked: boolean; content: string }[];
creator?: User;
assignee?: User;
changes?: Prisma.TaskChange[];
}
interface Activity {
type: "change" | "comment";
change?: Prisma.TaskChange;
comment?: Prisma.TaskComment;
}
}
type Nullable<T> = T | null;