forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

patchHolidayById.ts9 lines, 421 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Holiday } from "../client";
3
4/** Omit a field to keep it; the merged range must stay ordered. */
5export type UpdateHolidayBody = Partial<{ name: string; kind: string; starts_at: number; ends_at: number }>;
6
7export function patchHolidayById(id: string, body: UpdateHolidayBody): Promise<Holiday> {
8 return client<Holiday>(`/holidays/${id}`, { method: "PATCH", body });
9}