Skip to content

Commit 73f3d19

Browse files
committed
fix: implicit return types in finance.ts
1 parent f727bf0 commit 73f3d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/finance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class Finance {
153153
*
154154
* @method faker.finance.currencyCode
155155
*/
156-
currencyCode() {
156+
currencyCode(): string {
157157
// TODO @Shinigami92 2022-01-14: missing second parameter
158158
// @ts-expect-error
159159
return this.faker.random.objectElement(
@@ -166,7 +166,7 @@ export class Finance {
166166
*
167167
* @method faker.finance.currencyName
168168
*/
169-
currencyName() {
169+
currencyName(): string {
170170
return this.faker.random.objectElement(
171171
this.faker.definitions.finance.currency,
172172
'key'
@@ -178,7 +178,7 @@ export class Finance {
178178
*
179179
* @method faker.finance.currencySymbol
180180
*/
181-
currencySymbol() {
181+
currencySymbol(): string {
182182
let symbol;
183183

184184
while (!symbol) {

0 commit comments

Comments
 (0)