|
|
@@ -10,7 +10,7 @@ import dayjs from 'dayjs'
|
|
|
import { InferResponseType } from 'hono'
|
|
|
import './index.css'
|
|
|
|
|
|
-type OrderByIdResponse = InferResponseType<typeof orderClient[':id'].$get, 200>
|
|
|
+type OrderByIdResponse = InferResponseType<typeof orderClient[':id']['$get'], 200>
|
|
|
type OrderListResponse = InferResponseType<typeof orderClient.$get, 200>
|
|
|
type Order = (OrderByIdResponse | OrderListResponse['data'][0]) & {
|
|
|
expireTime?: string | Date | null
|