dify/web/models/history.ts
2023-05-15 08:51:32 +08:00

12 lines
228 B
TypeScript

export type History = {
id: string
source: string
target: string
}
export type HistoryResponse = {
histories: History[]
}
export const fetchHistories = (url: string) =>
fetch(url).then<HistoryResponse>(r => r.json())