We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f727bf0 commit 73f3d19Copy full SHA for 73f3d19
src/finance.ts
@@ -153,7 +153,7 @@ export class Finance {
153
*
154
* @method faker.finance.currencyCode
155
*/
156
- currencyCode() {
+ currencyCode(): string {
157
// TODO @Shinigami92 2022-01-14: missing second parameter
158
// @ts-expect-error
159
return this.faker.random.objectElement(
@@ -166,7 +166,7 @@ export class Finance {
166
167
* @method faker.finance.currencyName
168
169
- currencyName() {
+ currencyName(): string {
170
171
this.faker.definitions.finance.currency,
172
'key'
@@ -178,7 +178,7 @@ export class Finance {
178
179
* @method faker.finance.currencySymbol
180
181
- currencySymbol() {
+ currencySymbol(): string {
182
let symbol;
183
184
while (!symbol) {
0 commit comments