hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits
| 1 | import { client } from "./client"; |
| 2 | import type { Note } from "./types"; |
| 3 | |
| 4 | export type PatchNoteBody = { |
| 5 | title?: string | null; |
| 6 | content?: string | null; |
| 7 | }; |
| 8 | |
| 9 | export function patchNoteById(id: string, body: PatchNoteBody): Promise<Note> { |
| 10 | return client<Note>(`/notes/${id}`, { method: "PATCH", body }); |
| 11 | } |