@nhtio/phone-object 1.20251202.0 → 1.20251205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +17 -17
- package/index.cjs.map +1 -1
- package/index.d.mts +9 -9
- package/index.mjs +87751 -19021
- package/index.mjs.map +1 -1
- package/package.json +6 -1
package/index.d.mts
CHANGED
|
@@ -74,25 +74,25 @@ export declare class Phone implements PhoneModel {
|
|
|
74
74
|
* @readonly
|
|
75
75
|
* @type {CountryOrUnknown}
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
readonly country: CountryOrUnknown;
|
|
78
78
|
/**
|
|
79
79
|
* Returns whether the phone number uses a valid format for the parsed country or not.
|
|
80
80
|
* @readonly
|
|
81
81
|
* @type {boolean}
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
readonly valid: boolean;
|
|
84
84
|
/**
|
|
85
85
|
* Returns the type of the phone number.
|
|
86
86
|
* @readonly
|
|
87
87
|
* @type {PhoneTypes}
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
readonly type: PhoneTypes;
|
|
90
90
|
/**
|
|
91
91
|
* Returns whether the phone number is a mobile number or not.
|
|
92
92
|
* @readonly
|
|
93
93
|
* @type {boolean}
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
readonly mobile: boolean;
|
|
96
96
|
/**
|
|
97
97
|
* Returns the raw phone number.
|
|
98
98
|
* @readonly
|
|
@@ -101,7 +101,7 @@ export declare class Phone implements PhoneModel {
|
|
|
101
101
|
* @remarks
|
|
102
102
|
* If the phone number is not a valid phone number, the initial phone number which was passed to the constructor is returned.
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
readonly raw: string;
|
|
105
105
|
/**
|
|
106
106
|
* Returns the national format of the phone number.
|
|
107
107
|
* @readonly
|
|
@@ -110,7 +110,7 @@ export declare class Phone implements PhoneModel {
|
|
|
110
110
|
* @remarks
|
|
111
111
|
* If the phone number is not a valid phone number, the initial phone number which was passed to the constructor is returned.
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
readonly national: string;
|
|
114
114
|
/**
|
|
115
115
|
* Returns the international format of the phone number.
|
|
116
116
|
* @readonly
|
|
@@ -119,7 +119,7 @@ export declare class Phone implements PhoneModel {
|
|
|
119
119
|
* @remarks
|
|
120
120
|
* If the phone number is not a valid phone number, the initial phone number which was passed to the constructor is returned.
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
readonly international: string;
|
|
123
123
|
/**
|
|
124
124
|
* Returns the E.164 format of the phone number.
|
|
125
125
|
* @readonly
|
|
@@ -128,13 +128,13 @@ export declare class Phone implements PhoneModel {
|
|
|
128
128
|
* @remarks
|
|
129
129
|
* If the phone number is not a valid phone number, the initial phone number which was passed to the constructor is returned.
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
readonly e164: string;
|
|
132
132
|
/**
|
|
133
133
|
* Returns the timezone of the phone number.
|
|
134
134
|
* @readonly
|
|
135
135
|
* @type {PossiblePhoneTimezone}
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
readonly timezone: PossiblePhoneTimezone;
|
|
138
138
|
/**
|
|
139
139
|
* Returns an object representation of the phone number.
|
|
140
140
|
* @returns {{
|