forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getBoards.ts8 lines, 410 bytesHistoryRawDownload
1import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client";
2import type { Board } from "./types";
3
4// Boards the caller created or was invited to, newest first.
5export async function getBoards(params?: PageParams, signal?: AbortSignal): Promise<Page<Board>> {
6 const data = await client<unknown>(`/boards${pageQuery(params)}`, { signal });
7 return normalizePage<Board>(data);
8}