Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(unsplash): deprecate unused const #1046

Merged
merged 11 commits into from
Jun 17, 2022
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 = [
import-brain marked this conversation as resolved.
Show resolved Hide resolved
'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'];
import-brain marked this conversation as resolved.
Show resolved Hide resolved
}

constructor(private readonly faker: Faker) {}

Expand Down