add type, validation & toast
This commit is contained in:
20
user-interface/src/types/types.ts
Normal file
20
user-interface/src/types/types.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
interface Knowledge {
|
||||
id: number | null,
|
||||
content: string,
|
||||
uri: string,
|
||||
}
|
||||
|
||||
interface Question {
|
||||
id: number | null,
|
||||
question: string,
|
||||
knowledgId: number,
|
||||
metric: Metric | null
|
||||
}
|
||||
|
||||
interface Metric {
|
||||
id: number | null,
|
||||
questionId: number,
|
||||
needIndex: number
|
||||
}
|
||||
|
||||
export type {Knowledge, Question, Metric}
|
||||
Reference in New Issue
Block a user