diff options
| author | Eric Cheng <[email protected]> | 2022-01-29 15:48:16 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-29 21:48:16 +0100 |
| commit | b5482df6a5083555d6ac0d87de89b0736615c727 (patch) | |
| tree | 3f7c00304b9df3326631f8cdc4211776b7f57cb1 /src/random.ts | |
| parent | 6820a2908e771d5563f55355c819d86b4209855b (diff) | |
| download | faker-b5482df6a5083555d6ac0d87de89b0736615c727.tar.xz faker-b5482df6a5083555d6ac0d87de89b0736615c727.zip | |
chore: add more type annotations (#358)
Diffstat (limited to 'src/random.ts')
| -rw-r--r-- | src/random.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/random.ts b/src/random.ts index 1bd0010b..627e603f 100644 --- a/src/random.ts +++ b/src/random.ts @@ -233,7 +233,7 @@ export class Random { * @method faker.random.image * @deprecated */ - image() { + image(): string { console.log( 'Deprecation Warning: faker.random.image is now located in faker.image.image' ); @@ -397,7 +397,7 @@ export class Random { * @param count defaults to 1 * @deprecated */ - hexaDecimal(count?: number) { + hexaDecimal(count?: number): string { console.log( 'Deprecation Warning: faker.random.hexaDecimal is now located in faker.datatype.hexaDecimal' ); |
