hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Holiday } from "../client"; |
| 3 | |
| 4 | /** Omit a field to keep it; the merged range must stay ordered. */ |
| 5 | export type UpdateHolidayBody = Partial<{ name: string; kind: string; starts_at: number; ends_at: number }>; |
| 6 | |
| 7 | export function patchHolidayById(id: string, body: UpdateHolidayBody): Promise<Holiday> { |
| 8 | return client<Holiday>(`/holidays/${id}`, { method: "PATCH", body }); |
| 9 | } |