-
-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
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
chore: rename phone.phoneFormats() to formats() #710
Conversation
renamed `phoneFormats()` to `formats`
src/phone.ts
Outdated
@@ -55,7 +55,7 @@ export class Phone { | |||
* faker.phone.phoneFormats() // '!##.!##.####' | |||
*/ | |||
// TODO @pkuczynski 2022-02-01: simplify name to `format()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this comment.
@@ -55,7 +55,7 @@ export class Phone { | |||
* faker.phone.phoneFormats() // '!##.!##.####' | |||
*/ | |||
// TODO @pkuczynski 2022-02-01: simplify name to `format()` | |||
phoneFormats(): string { | |||
formats(): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please format this correctly by running pnpm run format
.
Please create an alias with a deprecation warning that points to this method to ease migration.
We haven't decided whether we actually want to expose the method in general. So putting this on hold. |
Superseded by #724 |
renamed
phoneFormats()
toformats
Ref : #694