From 624bf36b49a22b3cae43f4c218a12835e9f79185 Mon Sep 17 00:00:00 2001 From: Joe Pantazidis Date: Tue, 18 Jun 2024 11:06:53 +0100 Subject: [PATCH] fix: add total_count to curated photos endpoint types --- src/generatePhotoEndpoints.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generatePhotoEndpoints.ts b/src/generatePhotoEndpoints.ts index 0fe22d5..5c9fb02 100644 --- a/src/generatePhotoEndpoints.ts +++ b/src/generatePhotoEndpoints.ts @@ -3,13 +3,12 @@ import { Photo, PaginationParams, ErrorResponse, - Photos, PhotosWithTotalResults, } from "./types"; import { isPhotos } from "./typeCheckers"; type SearchReturn = PhotosWithTotalResults | ErrorResponse; -type CuratedReturn = Photos | ErrorResponse; +type CuratedReturn = PhotosWithTotalResults | ErrorResponse; type ShowReturn = Photo | ErrorResponse; type RandomReturn = Photo | ErrorResponse;