forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postNoteFile.ts8 lines, 317 bytesHistoryRawDownload
1import { formClient } from "../client";
2import type { NoteFile } from "../client";
3
4export function postNoteFile(noteId: string, file: File, signal?: AbortSignal): Promise<NoteFile> {
5 const body = new FormData();
6 body.append("file", file);
7 return formClient<NoteFile>(`/notes/${noteId}/files`, body, signal);
8}