forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postNote.ts11 lines, 273 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Note } from "./types";
3
4export type PostNoteBody = {
5 title: string;
6 content?: string | null;
7};
8
9export function postNote(body: PostNoteBody): Promise<Note> {
10 return client<Note>("/notes", { method: "POST", body });
11}