You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior
After generating ZenStack with the TRPC plugin. Some of the schemas have typescript errors. I currently have 133 errors and they all appear to be similar in nature. I'm not ruling out an issue in my setup or library version issue.
Type
'ZodObject<{
where: ZodLazy<ZodType<Omit<UserBadgeWhereUniqueInput, "zenstack_transaction" | "zenstack_guard">, ZodTypeDef, Omit<UserBadgeWhereUniqueInput, "zenstack_transaction" | "zenstack_guard">>>;
update: ZodUnion<...>;
create: ZodUnion<...>;
}, "strict", ZodTypeAny, { ...; }, { ...; }>'
is not assignable to type
'ZodType<Omit<UserBadgeUpsertWithWhereUniqueWithoutUserInput, "zenstack_transaction" | "zenstack_guard">, ZodTypeDef, Omit<...>>'.
The types of '_type.update' are incompatible between these types.
Type
'(Omit<UserBadgeUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard"> |
Omit<UserBadgeUncheckedUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard">) &
(Omit<...> | ... 1 more ... | undefined)'
is not assignable to type
'(Without<UserBadgeUpdateWithoutUserInput, UserBadgeUncheckedUpdateWithoutUserInput> &
UserBadgeUncheckedUpdateWithoutUserInput) |
(Without<...> & UserBadgeUpdateWithoutUserInput)'.
Type
'Omit<UserBadgeUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard"> &
Omit<UserBadgeUncheckedUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard">'
is not assignable to type
'(Without<UserBadgeUpdateWithoutUserInput, UserBadgeUncheckedUpdateWithoutUserInput> &
UserBadgeUncheckedUpdateWithoutUserInput) |
(Without<...> & UserBadgeUpdateWithoutUserInput)'.
Type
'Omit<UserBadgeUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard"> &
Omit<UserBadgeUncheckedUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard">'
is not assignable to type
'Without<UserBadgeUncheckedUpdateWithoutUserInput, UserBadgeUpdateWithoutUserInput> &
UserBadgeUpdateWithoutUserInput'.
Type
'Omit<UserBadgeUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard"> &
Omit<UserBadgeUncheckedUpdateWithoutUserInput, "zenstack_transaction" | "zenstack_guard">'
is not assignable to type
'Without<UserBadgeUncheckedUpdateWithoutUserInput, UserBadgeUpdateWithoutUserInput>'.
Types of property 'badgeId' are incompatible.
Type
'string | StringFieldUpdateOperationsInput | undefined'
is not assignable to type
'undefined'.
Type 'string' is not assignable to type 'undefined'.
Environment (please complete the following information):
ZenStack version: 1.0.0-alpha.124
Prisma version: 4.14.1
Typescript version: 4.9.4
Database type: CockroachDB
Additional context
/* eslint-disable */import{z}from'zod'import{UserBadgeWhereUniqueInputObjectSchema}from'./UserBadgeWhereUniqueInput.schema'import{UserBadgeUpdateWithoutUserInputObjectSchema}from'./UserBadgeUpdateWithoutUserInput.schema'import{UserBadgeUncheckedUpdateWithoutUserInputObjectSchema}from'./UserBadgeUncheckedUpdateWithoutUserInput.schema'import{UserBadgeCreateWithoutUserInputObjectSchema}from'./UserBadgeCreateWithoutUserInput.schema'import{UserBadgeUncheckedCreateWithoutUserInputObjectSchema}from'./UserBadgeUncheckedCreateWithoutUserInput.schema'importtype{Prisma}from'@prisma/client'// Schema has the errorconstSchema: z.ZodType<Omit<Prisma.UserBadgeUpsertWithWhereUniqueWithoutUserInput,'zenstack_transaction'|'zenstack_guard'>>=z.object({where: z.lazy(()=>UserBadgeWhereUniqueInputObjectSchema),update: z.union([z.lazy(()=>UserBadgeUpdateWithoutUserInputObjectSchema),z.lazy(()=>UserBadgeUncheckedUpdateWithoutUserInputObjectSchema)]),create: z.union([z.lazy(()=>UserBadgeCreateWithoutUserInputObjectSchema),z.lazy(()=>UserBadgeUncheckedCreateWithoutUserInputObjectSchema)])}).strict()exportconstUserBadgeUpsertWithWhereUniqueWithoutUserInputObjectSchema=Schema
The text was updated successfully, but these errors were encountered:
Description and expected behavior
After generating ZenStack with the TRPC plugin. Some of the schemas have typescript errors. I currently have 133 errors and they all appear to be similar in nature. I'm not ruling out an issue in my setup or library version issue.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: