Upgrading to work with PayloadCMS 3.0 #23
Annotations
6 errors
build:
src/utilities/GetAppointmentsForDay.ts#L21
Argument of type '(res: { docs: Service[]; }) => Service[]' is not assignable to parameter of type '(value: PaginatedDocs<JsonObject & TypeWithID>) => Service[] | PromiseLike<Service[]>'.
|
build:
src/utilities/GetAppointmentsForDay.ts#L23
'req.query.services' is of type 'unknown'.
|
build:
src/utilities/GetAppointmentsForDay.ts#L38
Argument of type '(res: OpeningTimes) => OpeningTimes' is not assignable to parameter of type '(value: JsonObject) => OpeningTimes | PromiseLike<OpeningTimes>'.
|
build:
src/utilities/GetAppointmentsForDay.ts#L53
Argument of type 'unknown' is not assignable to parameter of type 'string'.
|
build:
src/utilities/GetAppointmentsForDay.ts#L101
Argument of type '(res: { docs: Appointment[]; }) => void' is not assignable to parameter of type '(value: PaginatedDocs<JsonObject & TypeWithID>) => void | PromiseLike<void>'.
|
build
Process completed with exit code 2.
|