You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 1234567891011121314151617 |
- export type User = {
- id: string
- firstName: string
- lastName: string
- name: string
- phone: string
- username: string
- email: string
- avatar: string
- }
-
- export type UserResponse = {
- users: User[]
- }
-
- export const fetchUsers = (url: string) =>
- fetch(url).then<UserResponse>(r => r.json())
|