Antti | Error structure changes #61
5 errors
TypeScript found 5 errors
Annotations
Check failure on line 56 in pages/api/gifts/[uuid].ts
github-actions / TypeScript
pages/api/gifts/[uuid].ts#L56
TS2345: Argument of type '{ gift: string; uuid: string; receiver: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Gift'
Check failure on line 79 in pages/api/gifts/[uuid].ts
github-actions / TypeScript
pages/api/gifts/[uuid].ts#L79
TS2345: Argument of type '{ gift: string; uuid: string; receiver: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Gift'
Check failure on line 99 in pages/api/gifts/[uuid].ts
github-actions / TypeScript
pages/api/gifts/[uuid].ts#L99
TS2345: Argument of type '{ gift: string; uuid: string; receiver: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Gift'
Check failure on line 45 in pages/api/gifts/index.ts
github-actions / TypeScript
pages/api/gifts/index.ts#L45
TS2345: Argument of type '{ gift: string; uuid: string; receiver: string; createdAt: Date; updatedAt: Date; }[]' is not assignable to parameter of type 'Gift[]'
Check failure on line 64 in pages/api/gifts/index.ts
github-actions / TypeScript
pages/api/gifts/index.ts#L64
TS2345: Argument of type '{ gift: string; uuid: string; receiver: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Gift'