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 c73d52f commit 45e078eCopy full SHA for 45e078e
frontend/src/types/User.ts
@@ -1,12 +1,13 @@
1
import { z } from "zod";
2
import { ProficiencyEnum } from "./Proficiency";
3
import { LanguageEnum } from "./Languages";
4
+import { RoleEnum } from "./Role";
5
6
const UserProfileSchema = z.object({
7
username: z.string(),
8
displayName: z.string(),
9
email: z.string().email(),
- roles: z.string().array(),
10
+ roles: z.array(RoleEnum),
11
proficiency: ProficiencyEnum,
12
languages: z.array(LanguageEnum),
13
});
0 commit comments