Skip to content

Commit

Permalink
fix: make equipped_avatar entries optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Aericio committed May 29, 2024
1 parent 0abe5b5 commit b79d529
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions dist/lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ export declare const PlayerSchema: z.ZodObject<{
uuid: z.ZodString;
username: z.ZodString;
rank: z.ZodString;
equipped_avatar_id: z.ZodString;
equipped_avatar_name: z.ZodString;
equipped_avatar_id: z.ZodOptional<z.ZodString>;
equipped_avatar_name: z.ZodOptional<z.ZodString>;
created_at: z.ZodOptional<z.ZodDate>;
updated_at: z.ZodOptional<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
uuid: string;
username: string;
rank: string;
equipped_avatar_id: string;
equipped_avatar_name: string;
equipped_avatar_id?: string | undefined;
equipped_avatar_name?: string | undefined;
created_at?: Date | undefined;
updated_at?: Date | undefined;
}, {
uuid: string;
username: string;
rank: string;
equipped_avatar_id: string;
equipped_avatar_name: string;
equipped_avatar_id?: string | undefined;
equipped_avatar_name?: string | undefined;
created_at?: Date | undefined;
updated_at?: Date | undefined;
}>;
Expand Down
4 changes: 2 additions & 2 deletions dist/lib/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/types.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const PlayerSchema = z.object({
uuid: z.string(),
username: z.string(),
rank: z.string(),
equipped_avatar_id: z.string(),
equipped_avatar_name: z.string(),
equipped_avatar_id: z.string().optional(),
equipped_avatar_name: z.string().optional(),
created_at: z.date().optional(),
updated_at: z.date().optional(),
});
Expand Down

0 comments on commit b79d529

Please sign in to comment.