We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
address.countryCode
Existing comment about this issue: By @ST-DDT: Limit the parameter to the two values.
Limit the parameter to the two values.
faker/src/address.ts
Lines 289 to 306 in f476859
Only except 'alpha-2' and 'alpha-3' as valid string inputs
'alpha-2'
'alpha-3'
countryCode(alphaCode: 'alpha-2' | 'alpha-3' = 'alpha-2'): string
The text was updated successfully, but these errors were encountered:
Not sure, whether this should be in v6.1 or v6.2,
Sorry, something went wrong.
We could first put this in v6.2. But can put in v6.1 if we magically get everything else done?^^
I provided a PR that fixes this. Please assign me to this issue.
xDivisionByZerox
Successfully merging a pull request may close this issue.
The Problem
Existing comment about this issue:
By @ST-DDT:
Limit the parameter to the two values.
faker/src/address.ts
Lines 289 to 306 in f476859
The Solution
Only except
'alpha-2'
and'alpha-3'
as valid string inputsThe text was updated successfully, but these errors were encountered: