gotrip-fx-transaction-form 1.0.47 → 1.0.48
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.js +4755 -4740
- package/package.json +1 -1
- package/types/util/phone.d.ts +21 -0
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a phone number to Vietnamese local format (starting with 0)
|
|
3
|
+
* Examples:
|
|
4
|
+
* - "+84912345678" -> "0912345678"
|
|
5
|
+
* - "84912345678" -> "0912345678"
|
|
6
|
+
* - "0912345678" -> "0912345678" (remains unchanged)
|
|
7
|
+
* @param phone The phone number to convert
|
|
8
|
+
* @returns The converted phone number in local format
|
|
9
|
+
*/
|
|
10
|
+
export declare const toLocalPhoneNumber: (phone: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Converts a phone number to international format (starting with +84)
|
|
13
|
+
* Examples:
|
|
14
|
+
* - "0912345678" -> "+84912345678"
|
|
15
|
+
* - "912345678" -> "+84912345678"
|
|
16
|
+
* - "+84912345678" -> "+84912345678" (remains unchanged)
|
|
17
|
+
* - "84912345678" -> "+84912345678"
|
|
18
|
+
* @param phone The phone number to convert
|
|
19
|
+
* @returns The converted phone number in international format
|
|
20
|
+
*/
|
|
21
|
+
export declare const toInternationalPhoneNumber: (phone: string) => string;
|