ms-types 0.3.25 → 0.3.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/utils.d.ts CHANGED
@@ -33,6 +33,15 @@ declare namespace utils {
33
33
  */
34
34
  function takeMeToFront(): boolean;
35
35
 
36
+ /**
37
+ * str转 hex 字符串
38
+ * @param source 字符串
39
+ * @returns hex字符串
40
+ * @example
41
+ * utils.hexString("hello")
42
+ */
43
+ function hexString(source: string): string;
44
+
36
45
  /**
37
46
  * 字符串转base64
38
47
  * @param source 字符串
@@ -34,6 +34,14 @@ declare namespace $工具 {
34
34
  * $工具.APP切入前台()
35
35
  */
36
36
  function APP切入前台(): 布尔值;
37
+ /**
38
+ * 字符串转hex
39
+ * @param source 字符串
40
+ * @returns hex字符串
41
+ * @example
42
+ * utils.字符串转hex("hello")
43
+ */
44
+ function 字符串转hex(source: string): string;
37
45
  /**
38
46
  * 字符串转base64
39
47
  * @param source 字符串