hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { CourseNote } from "../client"; |
| 3 | |
| 4 | /** Omitted fields keep their value; null never clears here. */ |
| 5 | export type PatchCourseNoteBody = { |
| 6 | title?: string; |
| 7 | content?: string; |
| 8 | }; |
| 9 | |
| 10 | export function patchCourseNoteById(id: string, body: PatchCourseNoteBody): Promise<CourseNote> { |
| 11 | return client<CourseNote>(`/course-notes/${id}`, { method: "PATCH", body }); |
| 12 | } |