Skip to content

Commit

Permalink
docs: add missing since tags to faker.fake and faker.unique
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Sep 8, 2022
1 parent 5542c55 commit 55f0b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/fake/index.ts
Expand Up @@ -59,6 +59,8 @@ export class Fake {
* faker.fake('You can call me at {{phone.number(!## ### #####!)}}.') // 'You can call me at 202 555 973722.'
* faker.fake('I flipped the coin and got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin and got: tails'
*
* @since 3.0.0
*
* @deprecated Use faker.helpers.fake() instead.
*/
fake(str: string): string {
Expand Down
2 changes: 2 additions & 0 deletions src/modules/unique/index.ts
Expand Up @@ -44,6 +44,8 @@ export class Unique {
* @example
* faker.unique(faker.name.firstName) // 'Corbin'
*
* @since 5.0.0
*
* @deprecated Use faker.helpers.unique() instead.
*/
unique<Method extends (...parameters) => RecordKey>(
Expand Down

0 comments on commit 55f0b00

Please sign in to comment.