Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit d97c4f4

Browse files
authored
Merge pull request #202 from unsplash/add-plus-query-param
Add `Plus` search param
2 parents c5e4ba2 + c3c0548 commit d97c4f4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/methods/search/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { compactDefined } from '../../helpers/fp';
22
import * as Query from '../../helpers/query';
33
import { createRequestHandler, makeEndpoint } from '../../helpers/request';
44
import { castResponse } from '../../helpers/response';
5-
import { OrientationParam, PaginationParams } from '../../types/request';
5+
import { OrientationParam, PaginationParams, Plus } from '../../types/request';
66
import { ColorId, ContentFilter, Language, SearchOrderBy } from './types/request';
77
import * as SearchResponse from './types/response';
88

@@ -19,6 +19,7 @@ type SearchPhotosParams = SearchParams &
1919
*/
2020
orderBy?: SearchOrderBy;
2121
color?: ColorId;
22+
plus?: Plus;
2223
/**
2324
* API defaults to `en` (English) if no value is provided
2425
*/

src/types/request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type Orientation = 'landscape' | 'portrait' | 'squarish';
99
export type OrientationParam = {
1010
orientation?: Orientation;
1111
};
12+
export type Plus = 'mixed' | 'only' | 'none';
1213

1314
export type PaginationParams = {
1415
/**

0 commit comments

Comments
 (0)