-
Edit: It was an issue with a mismerge that removed I have the following schema and type alias: export const createEventPayloadSchema = z
.object({
name: z.string(),
userId: z.string(),
environment: z.object({
type: z.union([z.literal("server"), z.literal("browser")]),
platform: z.string(),
pageUrl: z.string(),
}),
time: z.string(),
properties: z.record(z.union([z.string(), z.number(), z.null()])),
})
.required();
export type CreateEventPayload = z.infer<typeof createEventPayloadSchema>; In this schema, I need the types not explicitly marked as type CreateEventPayload = {
name?: string;
userId?: string;
environment?: {
type?: "server" | "browser";
platform?: string;
pageUrl?: string;
};
time?: string;
properties?: Record<string, string | number>;
} Here, the How do I circumvent this? |
Beta Was this translation helpful? Give feedback.
Answered by
arn4v
Oct 13, 2021
Replies: 1 comment
-
Fixed: It was an issue with a mismerge that removed |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arn4v
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed: It was an issue with a mismerge that removed
strict: true