Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Add void params
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh committed Jun 23, 2021
1 parent f0971a6 commit 02a891b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/methods/photos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 02a891b

Please sign in to comment.