-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
62 lines (57 loc) · 1.14 KB
/
index.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
59
60
61
62
import * as pug from 'pug'
declare global {
type Course = pug.Course
type ElectPolicy = pug.ElectPolicy
type ElectResult = pug.ElectResult
type ScoreResult = pug.ScoreResult
}
declare module 'pug' {
interface Course {
electable: boolean
classId: string
course: string
type: string
time: string
teacher: string
credit: number
applicantNum: number
remainingNum: number
percent: number
}
interface ElectPolicy {
type: string
xkjdszid: string
match: (course: Course) => boolean
unelect?: string
force?: boolean
}
interface ElectResult {
err: {
caurse: string
code: number
cause?: string
}
code: number
}
interface ScoreResult {
classRank: string
totalRank: string
type: '公选' | '公必' | '专选' | '专必'
course: string
credit: number
score: string
year: string
term: '1' | '2' | '3'
studentId: string
teacher: string
scoreList: {
/** 分项成绩 */
FXCJ: string
/** 分项名称 */
FXMC: string
/** 默认权重 */
MRQZ: string
}[]
resource_id: string
}
}