aboutsummaryrefslogtreecommitdiff
path: root/src/modules/phone
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-09-09 01:18:57 +0800
committerGitHub <[email protected]>2022-09-08 17:18:57 +0000
commitb9884d098d6e14001da36acfba6fbfebdcef8fea (patch)
tree255dc8698618dfdb0de268f6f3db9bca94b84e83 /src/modules/phone
parent1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff)
downloadfaker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz
faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip
feat(modules): export module interfaces (#932)
Diffstat (limited to 'src/modules/phone')
-rw-r--r--src/modules/phone/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/phone/index.ts b/src/modules/phone/index.ts
index 2571014d..1f0d16a3 100644
--- a/src/modules/phone/index.ts
+++ b/src/modules/phone/index.ts
@@ -4,10 +4,10 @@ import { deprecated } from '../../internal/deprecated';
/**
* Module to generate phone-related data.
*/
-export class Phone {
+export class PhoneModule {
constructor(private readonly faker: Faker) {
// Bind `this` so namespaced is working correctly
- for (const name of Object.getOwnPropertyNames(Phone.prototype)) {
+ for (const name of Object.getOwnPropertyNames(PhoneModule.prototype)) {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}