選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

history.ts 228B

1234567891011
  1. export type History = {
  2. id: string
  3. source: string
  4. target: string
  5. }
  6. export type HistoryResponse = {
  7. histories: History[]
  8. }
  9. export const fetchHistories = (url: string) =>
  10. fetch(url).then<HistoryResponse>(r => r.json())