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