We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac77c4e commit 4ffa873Copy full SHA for 4ffa873
web/api/user.ts
@@ -19,7 +19,7 @@ import type { Hook as UseHook } from "./share/types.ts";
19
20
const UserListSchema = z.array(UserWithCoursesAndSubjectsSchema);
21
22
-export function useAll(): Hook<User[]> {
+export function useAll(): Hook<UserWithCoursesAndSubjects[]> {
23
return useCustomizedSWR("users::all", all, UserListSchema);
24
}
25
export function useRecommended(): UseHook<UserWithCoursesAndSubjects[]> {
@@ -40,7 +40,7 @@ export function usePendingFromMe(): Hook<UserWithCoursesAndSubjects[]> {
40
);
41
42
43
-async function all(): Promise<User[]> {
+async function all(): Promise<UserWithCoursesAndSubjects[]> {
44
const res = await credFetch("GET", endpoints.users);
45
return res.json();
46
0 commit comments