forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getNoteFiles.ts8 lines, 421 bytesHistoryRawDownload
1import { client } from "../client";
2import { normalizePage, pageQuery, type Page, type PageParams } from "../client";
3import type { NoteFile } from "../client";
4
5export async function getNoteFiles(noteId: string, params?: PageParams, signal?: AbortSignal): Promise<Page<NoteFile>> {
6 const data = await client<unknown>(`/notes/${noteId}/files${pageQuery(params)}`, { signal });
7 return normalizePage<NoteFile>(data);
8}