Skip to content

Commit

Permalink
chore(unsplash): deprecate unused const (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-brain authored Jun 17, 2022
1 parent f4d23eb commit 029b062
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/modules/image/providers/unsplash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ import { deprecated } from '../../../internal/deprecated';
* Module to generate links to random images on `https://source.unsplash.com/`.
*/
export class Unsplash {
// TODO ST-DDT 2022-03-11: Remove unused(?) constant
categories = [
'food',
'nature',
'people',
'technology',
'objects',
'buildings',
];
/**
* Gets the list of supported unsplash categories.
*
* @deprecated
*/
get categories(): string[] {
deprecated({
deprecated: 'faker.image.unsplash.categories',
since: '7.3',
until: '8.0',
});
return ['food', 'nature', 'people', 'technology', 'objects', 'buildings'];
}

constructor(private readonly faker: Faker) {}

Expand Down

0 comments on commit 029b062

Please sign in to comment.