Patrick DePippo
05/11/2022, 1:04 PM@calcom/api:dev: info - Checking validity of types...
@calcom/api:dev: Failed to compile.
@calcom/api:dev:
@calcom/api:dev: ./pages/api/event-types/[id].ts:56:56
@calcom/api:dev: Type error: Type '{ timeZone?: string | null | undefined; userId?: number | null | undefined; description?: string | null | undefined; teamId?: number | null | undefined; eventName?: string | null | undefined; ... 22 more ...; currency: string; }' is not assignable to type 'Partial<EventType>'.
@calcom/api:dev: Types of property 'recurringEvent' are incompatible.
@calcom/api:dev: Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev: Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonObject'.
@calcom/api:dev: Property 'dtstart' is incompatible with index signature.
@calcom/api:dev: Type 'Date' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev: Type 'Date' is not assignable to type 'JsonObject'.
@calcom/api:dev: Index signature for type 'string' is missing in type 'Date'.
@calcom/api:dev:
@calcom/api:dev: 54 | .findUnique({ where: { id: safeQuery.data.id } })
@calcom/api:dev: 55 | .then((data) => schemaEventTypePublic.parse(data))
@calcom/api:dev: > 56 | .then((event_type) => res.status(200).json({ event_type }))
Hariom Balhara
05/11/2022, 1:08 PMPatrick DePippo
05/11/2022, 1:09 PM@calcom/api:dev: Property 'dtstart' is incompatible with index signature.
@calcom/api:dev: Type 'Date' is not assignable to type 'InputJsonValue | null | undefined'.
@calcom/api:dev: Type 'Date' is not assignable to type 'InputJsonObject'.
@calcom/api:dev: Index signature for type 'string' is missing in type 'Date'.
@calcom/api:dev:
@calcom/api:dev: 96 | }
@calcom/api:dev: 97 | await prisma.eventType
@calcom/api:dev: > 98 | .update({ where: { id: safeQuery.data.id }, data: safeBody.data })
Agusti
05/11/2022, 1:09 PMPatrick DePippo
05/11/2022, 1:10 PMPatrick DePippo
05/11/2022, 1:11 PMapi/hooks
directoryPatrick DePippo
05/11/2022, 1:11 PMAgusti
05/11/2022, 1:11 PMPatrick DePippo
05/11/2022, 1:12 PMAgusti
05/11/2022, 1:59 PMPatrick DePippo
05/11/2022, 2:28 PM