forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits

patchNoteById.ts12 lines, 360 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Note } from "../client";
3
4/** Omitted fields keep their value; null never clears here. */
5export type PatchNoteBody = {
6 title?: string;
7 content?: string;
8};
9
10export function patchNoteById(id: string, body: PatchNoteBody): Promise<Note> {
11 return client<Note>(`/notes/${id}`, { method: "PATCH", body });
12}