-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
executable file
·32 lines (28 loc) · 877 Bytes
/
types.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
class Project {
name: string;
description: string;
socials: {
github?: string;
discord?: string;
website?: string;
}
routes: {
[key: string]: {
description: string;
parameters: {
[key: string]: {
description: string;
optional: boolean;
default?: string;
}
}
}
}
constructor(name: string, description: string, socials: { github?: string, discord?: string, website?: string }, routes: { [key: string]: { description: string, parameters: { [key: string]: { description: string, optional: boolean, default?: string } } } }) {
this.name = name;
this.description = description;
this.socials = socials;
this.routes = routes;
}
}
export { Project };