forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

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