libphonenumber-js 1.12.1 → 1.12.2
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 +5 -5
- package/types.d.ts +5 -5
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,16 +91,16 @@ export type CountryCallingCode = Tagged<string, "CountryCallingCode">;
|
|
|
91
91
|
|
|
92
92
|
type FormatExtension = (formattedNumber: string, extension: Extension, metadata: MetadataJson) => string
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
export interface FormatNumberOptions {
|
|
95
95
|
v2?: boolean;
|
|
96
|
+
fromCountry?: CountryCode;
|
|
97
|
+
humanReadable?: boolean;
|
|
98
|
+
nationalPrefix?: boolean;
|
|
96
99
|
formatExtension?: FormatExtension;
|
|
97
100
|
};
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
export interface FormatNumberOptionsWithoutIDD {
|
|
100
103
|
v2?: boolean;
|
|
101
|
-
fromCountry?: CountryCode;
|
|
102
|
-
humanReadable?: boolean;
|
|
103
|
-
nationalPrefix?: boolean;
|
|
104
104
|
formatExtension?: FormatExtension;
|
|
105
105
|
};
|
|
106
106
|
|
package/types.d.ts
CHANGED
|
@@ -91,16 +91,16 @@ export type CountryCallingCode = Tagged<string, "CountryCallingCode">;
|
|
|
91
91
|
|
|
92
92
|
type FormatExtension = (formattedNumber: string, extension: Extension, metadata: MetadataJson) => string
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
export interface FormatNumberOptions {
|
|
95
95
|
v2?: boolean;
|
|
96
|
+
fromCountry?: CountryCode;
|
|
97
|
+
humanReadable?: boolean;
|
|
98
|
+
nationalPrefix?: boolean;
|
|
96
99
|
formatExtension?: FormatExtension;
|
|
97
100
|
};
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
export interface FormatNumberOptionsWithoutIDD {
|
|
100
103
|
v2?: boolean;
|
|
101
|
-
fromCountry?: CountryCode;
|
|
102
|
-
humanReadable?: boolean;
|
|
103
|
-
nationalPrefix?: boolean;
|
|
104
104
|
formatExtension?: FormatExtension;
|
|
105
105
|
};
|
|
106
106
|
|