import { client } from "../client"; import type { Note } from "../client"; /** Omitted fields keep their value; null never clears here. */ export type PatchNoteBody = { title?: string; content?: string; }; export function patchNoteById(id: string, body: PatchNoteBody): Promise { return client(`/notes/${id}`, { method: "PATCH", body }); }