forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

getMyKarne.ts11 lines, 457 bytesHistoryRawDownload
1import { client } from "../client";
2import type { KarneReport } from "../client";
3
4/**
5 * The caller's karne for one dönem. Omit `term` for the newest one. An
6 * archived dönem serves the snapshot the school froze when it closed.
7 */
8export function getMyKarne(term?: string, signal?: AbortSignal): Promise<KarneReport> {
9 const query = term ? `?term=${encodeURIComponent(term)}` : "";
10 return client<KarneReport>(`/marks/karne${query}`, { signal });
11}