import { client } from "./client"; import type { Note } from "./types"; export type PostNoteBody = { title: string; content?: string | null; }; export function postNote(body: PostNoteBody): Promise { return client("/notes", { method: "POST", body }); }