page_params: Add property to zod object.

This commit is contained in:
Varun Singh 2024-04-24 22:18:31 +05:30 committed by Tim Abbott
parent be91b41236
commit 796cc038c4
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ const home_params_schema = default_params_schema
corporate_enabled: z.boolean(),
furthest_read_time: z.nullable(z.number()),
is_spectator: z.boolean(),
// `language_cookie_name` is only sent for spectators.
language_cookie_name: z.optional(z.string()),
language_list: z.array(
z.object({
code: z.string(),