forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits

postNote.ts11 lines, 276 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Note } from "../client";
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}