Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
_ committed Jun 1, 2023
1 parent e190798 commit a58666c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apis/getSchedules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Line } from '../constants/line'
import { Stop } from '../constants/stop'
import { LineCode } from '../constants/line'
import { StopCode } from '../constants/stop'
import { apiClient } from './apiClient'

export type ScheduleItem = {
Expand Down Expand Up @@ -28,7 +28,7 @@ type Schedule = {
isdelay: string
}

const getSchedules = ({ line, stop }: { line: Line; stop: Stop }) =>
const getSchedules = ({ line, stop }: { line: LineCode; stop: StopCode }) =>
apiClient
.url('/transport/mtr/getSchedule.php')
.query({ line, sta: stop })
Expand Down

0 comments on commit a58666c

Please sign in to comment.