From 02a891b943d0e4c16895ae1caaeb173631168f09 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 23 Jun 2021 20:54:28 +0100 Subject: [PATCH] Add void params --- src/methods/photos/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/methods/photos/index.ts b/src/methods/photos/index.ts index 417786c..7314464 100644 --- a/src/methods/photos/index.ts +++ b/src/methods/photos/index.ts @@ -17,7 +17,8 @@ const PHOTOS_PATH_PREFIX = '/photos'; export const list = (() => { const getPathname = () => PHOTOS_PATH_PREFIX; return makeEndpoint({ - getPathname, + // Wrapper uses type trick to allow 0 args + getPathname: (_params?: void) => getPathname(), handleRequest: createRequestHandler((feedParams: PaginationParams = {}) => ({ pathname: PHOTOS_PATH_PREFIX, query: compactDefined(Query.getFeedParams(feedParams)),