hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; |
| 3 | import type { ClassBlueprint } from "../client"; |
| 4 | |
| 5 | export async function getClassBlueprints( |
| 6 | params?: PageParams, |
| 7 | signal?: AbortSignal, |
| 8 | ): Promise<Page<ClassBlueprint>> { |
| 9 | const data = await client<unknown>(`/classes/blueprints${pageQuery(params)}`, { signal }); |
| 10 | return normalizePage<ClassBlueprint>(data); |
| 11 | } |