forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

getEventAttendance.ts12 lines, 450 bytesHistoryRawDownload
1import { client } from "../client";
2import { normalizePage, pageQuery, type Page, type PageParams } from "../client";
3import type { Attendance } from "../client";
4
5export async function getEventAttendance(
6 eventId: string,
7 params?: PageParams,
8 signal?: AbortSignal,
9): Promise<Page<Attendance>> {
10 const data = await client<unknown>(`/events/${eventId}/attendance${pageQuery(params)}`, { signal });
11 return normalizePage<Attendance>(data);
12}