libphonenumber-js 1.12.1 → 1.12.3
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/core/index.d.cts +2 -0
- package/core/index.d.ts +2 -0
- package/custom.d.ts +1 -0
- package/index.d.cts +2 -0
- package/index.d.ts +2 -0
- package/max/index.d.cts +2 -0
- package/max/index.d.ts +2 -0
- package/min/index.d.cts +2 -0
- package/min/index.d.ts +2 -0
- package/mobile/index.d.cts +2 -0
- package/mobile/index.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.cts +7 -7
- package/types.d.ts +7 -7
package/core/index.d.cts
CHANGED
package/core/index.d.ts
CHANGED
package/custom.d.ts
CHANGED
package/index.d.cts
CHANGED
package/index.d.ts
CHANGED
package/max/index.d.cts
CHANGED
package/max/index.d.ts
CHANGED
package/min/index.d.cts
CHANGED
package/min/index.d.ts
CHANGED
package/mobile/index.d.cts
CHANGED
package/mobile/index.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.cts
CHANGED
|
@@ -91,18 +91,18 @@ export type CountryCallingCode = Tagged<string, "CountryCallingCode">;
|
|
|
91
91
|
|
|
92
92
|
type FormatExtension = (formattedNumber: string, extension: Extension, metadata: MetadataJson) => string
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
v2?: boolean;
|
|
96
|
-
formatExtension?: FormatExtension;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
type FormatNumberOptions = {
|
|
94
|
+
export interface FormatNumberOptions {
|
|
100
95
|
v2?: boolean;
|
|
101
96
|
fromCountry?: CountryCode;
|
|
102
97
|
humanReadable?: boolean;
|
|
103
98
|
nationalPrefix?: boolean;
|
|
104
99
|
formatExtension?: FormatExtension;
|
|
105
|
-
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface FormatNumberOptionsWithoutIDD {
|
|
103
|
+
v2?: boolean;
|
|
104
|
+
formatExtension?: FormatExtension;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
107
|
// // https://stackoverflow.com/a/67026991
|
|
108
108
|
// type ArrayOfAtLeastOneCountryCode = [CountryCode, ...CountryCode[]];
|
package/types.d.ts
CHANGED
|
@@ -91,18 +91,18 @@ export type CountryCallingCode = Tagged<string, "CountryCallingCode">;
|
|
|
91
91
|
|
|
92
92
|
type FormatExtension = (formattedNumber: string, extension: Extension, metadata: MetadataJson) => string
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
v2?: boolean;
|
|
96
|
-
formatExtension?: FormatExtension;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
type FormatNumberOptions = {
|
|
94
|
+
export interface FormatNumberOptions {
|
|
100
95
|
v2?: boolean;
|
|
101
96
|
fromCountry?: CountryCode;
|
|
102
97
|
humanReadable?: boolean;
|
|
103
98
|
nationalPrefix?: boolean;
|
|
104
99
|
formatExtension?: FormatExtension;
|
|
105
|
-
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface FormatNumberOptionsWithoutIDD {
|
|
103
|
+
v2?: boolean;
|
|
104
|
+
formatExtension?: FormatExtension;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
107
|
// // https://stackoverflow.com/a/67026991
|
|
108
108
|
// type ArrayOfAtLeastOneCountryCode = [CountryCode, ...CountryCode[]];
|