Skip to content

Commit

Permalink
Merge pull request #202 from unsplash/add-plus-query-param
Browse files Browse the repository at this point in the history
Add `Plus` search param
  • Loading branch information
Magellol committed May 8, 2023
2 parents c5e4ba2 + c3c0548 commit d97c4f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/methods/search/index.ts
Expand Up @@ -2,7 +2,7 @@ import { compactDefined } from '../../helpers/fp';
import * as Query from '../../helpers/query';
import { createRequestHandler, makeEndpoint } from '../../helpers/request';
import { castResponse } from '../../helpers/response';
import { OrientationParam, PaginationParams } from '../../types/request';
import { OrientationParam, PaginationParams, Plus } from '../../types/request';
import { ColorId, ContentFilter, Language, SearchOrderBy } from './types/request';
import * as SearchResponse from './types/response';

Expand All @@ -19,6 +19,7 @@ type SearchPhotosParams = SearchParams &
*/
orderBy?: SearchOrderBy;
color?: ColorId;
plus?: Plus;
/**
* API defaults to `en` (English) if no value is provided
*/
Expand Down
1 change: 1 addition & 0 deletions src/types/request.ts
Expand Up @@ -9,6 +9,7 @@ export type Orientation = 'landscape' | 'portrait' | 'squarish';
export type OrientationParam = {
orientation?: Orientation;
};
export type Plus = 'mixed' | 'only' | 'none';

export type PaginationParams = {
/**
Expand Down

0 comments on commit d97c4f4

Please sign in to comment.