From 87a5ba9896749d8bb6f0c7c84185f3f0a23f2f1f Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 27 Mar 2023 13:35:45 +0200 Subject: docs: mark method references in @deprecation messages (#1963) --- src/modules/datatype/index.ts | 2 +- src/modules/random/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index 6a03362f..540c4ab5 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -220,7 +220,7 @@ export class DatatypeModule { * * @since 5.5.0 * - * @deprecated Use faker.string.sample() instead. + * @deprecated Use `faker.string.sample()` instead. */ string( options: diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 809c9322..2a44b0e2 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -245,7 +245,7 @@ export class RandomModule { * * @since 5.0.0 * - * @deprecated Use faker.string.alpha() instead. + * @deprecated Use `faker.string.alpha()` instead. */ alpha( options: @@ -305,7 +305,7 @@ export class RandomModule { * * @since 3.1.0 * - * @deprecated Use faker.string.alphanumeric() instead. + * @deprecated Use `faker.string.alphanumeric()` instead. */ alphaNumeric( count: number = 1, @@ -356,7 +356,7 @@ export class RandomModule { * * @since 6.3.0 * - * @deprecated Use faker.string.numeric() instead. + * @deprecated Use `faker.string.numeric()` instead. */ numeric( length: number = 1, -- cgit v1.2.3