From 029b0623e1223d3f268b178e8941616d52f99153 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Fri, 17 Jun 2022 03:16:34 -0400 Subject: [PATCH] chore(unsplash): deprecate unused const (#1046) --- src/modules/image/providers/unsplash.ts | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/modules/image/providers/unsplash.ts b/src/modules/image/providers/unsplash.ts index 2b66bca3fe7..0c1eb7ece59 100644 --- a/src/modules/image/providers/unsplash.ts +++ b/src/modules/image/providers/unsplash.ts @@ -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) {}