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