aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorEric Cheng <[email protected]>2022-06-17 03:16:34 -0400
committerGitHub <[email protected]>2022-06-17 07:16:34 +0000
commit029b0623e1223d3f268b178e8941616d52f99153 (patch)
tree71686bf617649671fe1e6e720c01252cb82cb21e /src/modules
parentf4d23eb838a67847180eebf22ca9d555dde70039 (diff)
downloadfaker-029b0623e1223d3f268b178e8941616d52f99153.tar.xz
faker-029b0623e1223d3f268b178e8941616d52f99153.zip
chore(unsplash): deprecate unused const (#1046)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/image/providers/unsplash.ts22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/modules/image/providers/unsplash.ts b/src/modules/image/providers/unsplash.ts
index 2b66bca3..0c1eb7ec 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) {}