-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
126 lines (110 loc) · 2.48 KB
/
global.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import type Chrome from "chrome";
import {
ChatHistories,
SessionHistories,
} from "@pages/background/lib/storage/chatHistoryStorage";
declare namespace chrome {
export default Chrome;
}
declare module "virtual:reload-on-update-in-background-script" {
export const reloadOnUpdate: (watchPath: string) => void;
export default reloadOnUpdate;
}
declare module "virtual:reload-on-update-in-view" {
const refreshOnUpdate: (watchPath: string) => void;
export default refreshOnUpdate;
}
declare module "*.svg" {
import React = require("react");
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
const src: string;
export default src;
}
declare module "*.jpg" {
const content: string;
export default content;
}
declare module "*.png" {
const content: string;
export default content;
}
declare module "*.json" {
const content: string;
export default content;
}
declare global {
type Chat = {
role: "user" | "assistant" | "error";
content: string;
};
type News = {
id: number;
title: string;
content: string;
journalist: string;
src: string;
press: string;
date: string;
url: string;
summary: string;
};
type SideMessageType = {
leftMessage?: React.ReactNode | null;
rightMessage?: React.ReactNode | null;
};
type HistoryElementType = {
interviewId: number;
userId: number;
title: string;
totalCnt: number;
useCnt: number;
status: number;
regDate: string;
};
type QuestionElementType = {
interviewId: number;
qaId: number;
question: string;
answer: string;
regDate: string;
modifyDate: string;
};
type QuestionType = {
role: "user" | "interviewer" | "ai";
interviewId: number;
qaId: number;
question: string;
answer: string;
regDate: string;
modifyDate: string;
};
type DocumentPDFType = {
resumeId: number;
fileName: string;
regDate: string;
};
type ResultType = {
interviewId: number;
interviewerFeel: string;
userId: number;
title: string;
status: number;
regDate: string;
feedback: string;
qaData: {
answer: string;
bestAnswer: string;
interviewId: number;
keyword: string[];
modifyDate: string;
qaId: number;
question: string;
regDate: string;
}[];
};
interface Window {
naver: any;
Kakao: any; // 나중에 설명할 카카오 로그인을 위해 이 부분도 추가해주세요!
gtag: any;
}
}