@hysc/meeting 6.1.4 → 6.1.6

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.
Files changed (80) hide show
  1. package/esm/boom-meeting/src/BMChat/BMMessageInfo.d.ts +31 -0
  2. package/esm/boom-meeting/src/BMRoom/BMLiveVM.d.ts +35 -0
  3. package/esm/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +215 -0
  4. package/esm/boom-meeting/src/BMStream/BMSpeaker.d.ts +26 -0
  5. package/esm/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
  6. package/esm/boom-meeting/src/BMStream/sortStream.d.ts +30 -0
  7. package/esm/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +26 -0
  8. package/esm/boom-meeting/src/bjy-common/function/execute.d.ts +9 -0
  9. package/esm/boom-meeting/src/bjy-common/function/isNative.d.ts +1 -0
  10. package/esm/boom-meeting/src/bjy-common/function/nextTick.d.ts +2 -0
  11. package/esm/boom-meeting/src/bjy-common/function/toString.d.ts +1 -0
  12. package/esm/boom-meeting/src/bjy-common/util/constant.d.ts +50 -0
  13. package/esm/boom-meeting/src/bjy-common/util/is.d.ts +49 -0
  14. package/esm/boom-meeting/src/bjy-common/util/string.d.ts +102 -0
  15. package/esm/boom-meeting/src/constants.d.ts +129 -0
  16. package/esm/boom-meeting/src/error/RTCError.d.ts +20 -0
  17. package/esm/boom-meeting/src/error/errorType.d.ts +96 -0
  18. package/esm/boom-meeting/src/logger/logger.d.ts +86 -0
  19. package/esm/boom-meeting/src/util/Pqueue.d.ts +62 -0
  20. package/esm/boom-meeting/src/util/Thread.d.ts +12 -0
  21. package/esm/boom-meeting/src/util/benchmark.d.ts +1 -0
  22. package/esm/boom-meeting/src/util/constant.d.ts +67 -0
  23. package/esm/boom-meeting/src/util/emitter.d.ts +43 -0
  24. package/esm/boom-meeting/src/util/sortUtils.d.ts +10 -0
  25. package/esm/boom-meeting/src/util/util.d.ts +78 -0
  26. package/esm/index.js +2 -2
  27. package/esm/index.js.map +3 -3
  28. package/esm/src/BMChat/BMMessageInfo.d.ts +31 -31
  29. package/esm/src/BMRoom/BMLiveVM.d.ts +35 -35
  30. package/esm/src/BMRoom/BMRoomInfo.d.ts +215 -215
  31. package/esm/src/BMStream/BMSpeaker.d.ts +26 -26
  32. package/esm/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -35
  33. package/esm/src/BMStream/sortStream.d.ts +30 -30
  34. package/esm/src/SingletonQueue/SingletonQueue.d.ts +26 -26
  35. package/esm/src/bjy-common/function/execute.d.ts +9 -9
  36. package/esm/src/bjy-common/function/isNative.d.ts +1 -1
  37. package/esm/src/bjy-common/function/nextTick.d.ts +2 -2
  38. package/esm/src/bjy-common/function/toString.d.ts +1 -1
  39. package/esm/src/bjy-common/util/constant.d.ts +50 -50
  40. package/esm/src/bjy-common/util/is.d.ts +49 -49
  41. package/esm/src/bjy-common/util/string.d.ts +102 -102
  42. package/esm/src/constants.d.ts +129 -129
  43. package/esm/src/error/RTCError.d.ts +20 -20
  44. package/esm/src/error/errorType.d.ts +96 -96
  45. package/esm/src/logger/logger.d.ts +86 -86
  46. package/esm/src/util/Pqueue.d.ts +62 -62
  47. package/esm/src/util/Thread.d.ts +12 -12
  48. package/esm/src/util/benchmark.d.ts +1 -0
  49. package/esm/src/util/constant.d.ts +67 -67
  50. package/esm/src/util/emitter.d.ts +43 -43
  51. package/esm/src/util/sortUtils.d.ts +10 -10
  52. package/esm/src/util/util.d.ts +78 -78
  53. package/package.json +4 -4
  54. package/umd/boom-meeting/src/BMChat/BMMessageInfo.d.ts +31 -0
  55. package/umd/boom-meeting/src/BMRoom/BMLiveVM.d.ts +35 -0
  56. package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +215 -0
  57. package/umd/boom-meeting/src/BMStream/BMSpeaker.d.ts +26 -0
  58. package/umd/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
  59. package/umd/boom-meeting/src/BMStream/sortStream.d.ts +30 -0
  60. package/umd/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +26 -0
  61. package/umd/boom-meeting/src/bjy-common/function/execute.d.ts +9 -0
  62. package/umd/boom-meeting/src/bjy-common/function/isNative.d.ts +1 -0
  63. package/umd/boom-meeting/src/bjy-common/function/nextTick.d.ts +2 -0
  64. package/umd/boom-meeting/src/bjy-common/function/toString.d.ts +1 -0
  65. package/umd/boom-meeting/src/bjy-common/util/constant.d.ts +50 -0
  66. package/umd/boom-meeting/src/bjy-common/util/is.d.ts +49 -0
  67. package/umd/boom-meeting/src/bjy-common/util/string.d.ts +102 -0
  68. package/umd/boom-meeting/src/constants.d.ts +129 -0
  69. package/umd/boom-meeting/src/error/RTCError.d.ts +20 -0
  70. package/umd/boom-meeting/src/error/errorType.d.ts +96 -0
  71. package/umd/boom-meeting/src/logger/logger.d.ts +86 -0
  72. package/umd/boom-meeting/src/util/Pqueue.d.ts +62 -0
  73. package/umd/boom-meeting/src/util/Thread.d.ts +12 -0
  74. package/umd/boom-meeting/src/util/benchmark.d.ts +1 -0
  75. package/umd/boom-meeting/src/util/constant.d.ts +67 -0
  76. package/umd/boom-meeting/src/util/emitter.d.ts +43 -0
  77. package/umd/boom-meeting/src/util/sortUtils.d.ts +10 -0
  78. package/umd/boom-meeting/src/util/util.d.ts +78 -0
  79. package/umd/index.js +2 -2
  80. package/umd/src/BMStream/BMStreamModel.d.ts +2 -1
@@ -1,35 +1,35 @@
1
- /**
2
- * @name: getHTMLMediaStreamOptions
3
- * @author: yangliye
4
- * @date: 2022-09-15 14:58
5
- * @description:getHTMLMediaStreamOptions
6
- * @update: 2022-09-15 14:58
7
- */
8
- interface Options {
9
- videoElement: HTMLVideoElement;
10
- }
11
- export interface Result {
12
- video: boolean;
13
- audio: boolean;
14
- videoSource: MediaStreamTrack;
15
- audioSource: MediaStreamTrack;
16
- width: number;
17
- height: number;
18
- }
19
- /**
20
- * 获取video标签中的mediaStream
21
- * @param opts
22
- */
23
- export declare function getHTMLMediaStreamOptions(opts: Options): Result | null;
24
- export declare function getMediaStreamInfo(mediaStream: MediaStream, videoInfo: {
25
- width: number;
26
- height: number;
27
- }): {
28
- video: boolean;
29
- audio: boolean;
30
- videoSource: MediaStreamTrack;
31
- audioSource: MediaStreamTrack;
32
- width: number;
33
- height: number;
34
- } | null;
35
- export {};
1
+ /**
2
+ * @name: getHTMLMediaStreamOptions
3
+ * @author: yangliye
4
+ * @date: 2022-09-15 14:58
5
+ * @description:getHTMLMediaStreamOptions
6
+ * @update: 2022-09-15 14:58
7
+ */
8
+ interface Options {
9
+ videoElement: HTMLVideoElement;
10
+ }
11
+ export interface Result {
12
+ video: boolean;
13
+ audio: boolean;
14
+ videoSource: MediaStreamTrack;
15
+ audioSource: MediaStreamTrack;
16
+ width: number;
17
+ height: number;
18
+ }
19
+ /**
20
+ * 获取video标签中的mediaStream
21
+ * @param opts
22
+ */
23
+ export declare function getHTMLMediaStreamOptions(opts: Options): Result | null;
24
+ export declare function getMediaStreamInfo(mediaStream: MediaStream, videoInfo: {
25
+ width: number;
26
+ height: number;
27
+ }): {
28
+ video: boolean;
29
+ audio: boolean;
30
+ videoSource: MediaStreamTrack;
31
+ audioSource: MediaStreamTrack;
32
+ width: number;
33
+ height: number;
34
+ } | null;
35
+ export {};
@@ -1,30 +1,30 @@
1
- /**
2
- * @name: sortStream
3
- * @author: yangliye
4
- * @date: 2023-04-18 11:40
5
- * @description:sortStream
6
- * @update: 2023-04-18 11:40
7
- */
8
- export declare function getMasterSort(a: boolean, v: boolean): number;
9
- /**
10
- * 12 - 15
11
- */
12
- export declare function getLocalSort(a: boolean, v: boolean): number;
13
- /**
14
- * 8 - 11
15
- * @param a
16
- * @param v
17
- */
18
- export declare function getManagerSort(a: boolean, v: boolean): number;
19
- /**
20
- * 取值范围 4 - 7
21
- * @param a
22
- * @param v
23
- */
24
- export declare function getGuestSort(a: boolean, v: boolean): number;
25
- /**
26
- * 取值范围 0 - 3
27
- * @param a
28
- * @param v
29
- */
30
- export declare function getCommonSort(a: boolean, v: boolean): number;
1
+ /**
2
+ * @name: sortStream
3
+ * @author: yangliye
4
+ * @date: 2023-04-18 11:40
5
+ * @description:sortStream
6
+ * @update: 2023-04-18 11:40
7
+ */
8
+ export declare function getMasterSort(a: boolean, v: boolean): number;
9
+ /**
10
+ * 12 - 15
11
+ */
12
+ export declare function getLocalSort(a: boolean, v: boolean): number;
13
+ /**
14
+ * 8 - 11
15
+ * @param a
16
+ * @param v
17
+ */
18
+ export declare function getManagerSort(a: boolean, v: boolean): number;
19
+ /**
20
+ * 取值范围 4 - 7
21
+ * @param a
22
+ * @param v
23
+ */
24
+ export declare function getGuestSort(a: boolean, v: boolean): number;
25
+ /**
26
+ * 取值范围 0 - 3
27
+ * @param a
28
+ * @param v
29
+ */
30
+ export declare function getCommonSort(a: boolean, v: boolean): number;
@@ -1,26 +1,26 @@
1
- /**
2
- * @name: SingletonQueue
3
- * @author: yangliye
4
- * @date: 2023-05-18 09:47
5
- * @description:SingletonQueue
6
- * @update: 2023-05-18 09:47
7
- */
8
- declare type CallBack = (arg: Map<string, PullItem>, ...args: any) => void;
9
- export declare type PullItem = {
10
- id: string;
11
- isScreen: boolean;
12
- isWeb?: boolean;
13
- force?: boolean;
14
- };
15
- export default class SingletonQueue {
16
- private static instance;
17
- private _callback;
18
- private pullMap;
19
- constructor();
20
- addUsers(userIds: PullItem[]): void;
21
- removeUsers(userId: PullItem[]): void;
22
- restart(): void;
23
- setQueueProcessor(callback: CallBack): void;
24
- removeQueueProcessor(): void;
25
- }
26
- export {};
1
+ /**
2
+ * @name: SingletonQueue
3
+ * @author: yangliye
4
+ * @date: 2023-05-18 09:47
5
+ * @description:SingletonQueue
6
+ * @update: 2023-05-18 09:47
7
+ */
8
+ declare type CallBack = (arg: Map<string, PullItem>, ...args: any) => void;
9
+ export declare type PullItem = {
10
+ id: string;
11
+ isScreen: boolean;
12
+ isWeb?: boolean;
13
+ force?: boolean;
14
+ };
15
+ export default class SingletonQueue {
16
+ private static instance;
17
+ private _callback;
18
+ private pullMap;
19
+ constructor();
20
+ addUsers(userIds: PullItem[]): void;
21
+ removeUsers(userId: PullItem[]): void;
22
+ restart(): void;
23
+ setQueueProcessor(callback: CallBack): void;
24
+ removeQueueProcessor(): void;
25
+ }
26
+ export {};
@@ -1,9 +1,9 @@
1
- /**
2
- * 任性地执行一个函数,不管它有没有、是不是
3
- *
4
- * @param fn 调用的函数
5
- * @param context 执行函数时的 this 指向
6
- * @param args 调用函数的参数,多参数时传入数组
7
- * @return 调用函数的返回值
8
- */
9
- export default function (fn: any, context?: any, args?: any): any;
1
+ /**
2
+ * 任性地执行一个函数,不管它有没有、是不是
3
+ *
4
+ * @param fn 调用的函数
5
+ * @param context 执行函数时的 this 指向
6
+ * @param args 调用函数的参数,多参数时传入数组
7
+ * @return 调用函数的返回值
8
+ */
9
+ export default function (fn: any, context?: any, args?: any): any;
@@ -1 +1 @@
1
- export default function (target: any): boolean;
1
+ export default function (target: any): boolean;
@@ -1,2 +1,2 @@
1
- declare let nextTick: Function;
2
- export default nextTick;
1
+ declare let nextTick: Function;
2
+ export default nextTick;
@@ -1 +1 @@
1
- export default function (target: any, defaultValue?: string): string;
1
+ export default function (target: any, defaultValue?: string): string;
@@ -1,50 +1,50 @@
1
- /**
2
- * 为了压缩,定义的常量
3
- */
4
- export declare const TRUE = true;
5
- export declare const FALSE = false;
6
- export declare const NULL: null;
7
- export declare const UNDEFINED: undefined;
8
- export declare const MINUS_ONE = -1;
9
- export declare const RAW_TRUE = "true";
10
- export declare const RAW_FALSE = "false";
11
- export declare const RAW_NULL = "null";
12
- export declare const RAW_UNDEFINED = "undefined";
13
- export declare const RAW_THIS = "this";
14
- export declare const RAW_VALUE = "value";
15
- export declare const RAW_LENGTH = "length";
16
- export declare const RAW_FUNCTION = "function";
17
- export declare const RAW_WILDCARD = "*";
18
- export declare const RAW_DOT = ".";
19
- export declare const RAW_SLASH = "/";
20
- export declare const RAW_TAG = "tag";
21
- export declare const KEYPATH_PARENT = "..";
22
- export declare const KEYPATH_CURRENT = "this";
23
- /**
24
- * Single instance for window in browser
25
- */
26
- export declare const WINDOW: (Window & typeof globalThis) | undefined;
27
- /**
28
- * Single instance for document in browser
29
- */
30
- export declare const DOCUMENT: Document | undefined;
31
- /**
32
- * Single instance for global in nodejs or browser
33
- */
34
- export declare const GLOBAL: typeof globalThis | undefined;
35
- /**
36
- * Single instance for noop function
37
- */
38
- export declare const EMPTY_FUNCTION: () => void;
39
- /**
40
- * 空对象,很多地方会用到,比如 `a || EMPTY_OBJECT` 确保是个对象
41
- */
42
- export declare const EMPTY_OBJECT: Readonly<{}>;
43
- /**
44
- * 空数组
45
- */
46
- export declare const EMPTY_ARRAY: readonly never[];
47
- /**
48
- * 空字符串
49
- */
50
- export declare const EMPTY_STRING = "";
1
+ /**
2
+ * 为了压缩,定义的常量
3
+ */
4
+ export declare const TRUE = true;
5
+ export declare const FALSE = false;
6
+ export declare const NULL: null;
7
+ export declare const UNDEFINED: undefined;
8
+ export declare const MINUS_ONE = -1;
9
+ export declare const RAW_TRUE = "true";
10
+ export declare const RAW_FALSE = "false";
11
+ export declare const RAW_NULL = "null";
12
+ export declare const RAW_UNDEFINED = "undefined";
13
+ export declare const RAW_THIS = "this";
14
+ export declare const RAW_VALUE = "value";
15
+ export declare const RAW_LENGTH = "length";
16
+ export declare const RAW_FUNCTION = "function";
17
+ export declare const RAW_WILDCARD = "*";
18
+ export declare const RAW_DOT = ".";
19
+ export declare const RAW_SLASH = "/";
20
+ export declare const RAW_TAG = "tag";
21
+ export declare const KEYPATH_PARENT = "..";
22
+ export declare const KEYPATH_CURRENT = "this";
23
+ /**
24
+ * Single instance for window in browser
25
+ */
26
+ export declare const WINDOW: (Window & typeof globalThis) | undefined;
27
+ /**
28
+ * Single instance for document in browser
29
+ */
30
+ export declare const DOCUMENT: Document | undefined;
31
+ /**
32
+ * Single instance for global in nodejs or browser
33
+ */
34
+ export declare const GLOBAL: typeof globalThis | undefined;
35
+ /**
36
+ * Single instance for noop function
37
+ */
38
+ export declare const EMPTY_FUNCTION: () => void;
39
+ /**
40
+ * 空对象,很多地方会用到,比如 `a || EMPTY_OBJECT` 确保是个对象
41
+ */
42
+ export declare const EMPTY_OBJECT: Readonly<{}>;
43
+ /**
44
+ * 空数组
45
+ */
46
+ export declare const EMPTY_ARRAY: readonly never[];
47
+ /**
48
+ * 空字符串
49
+ */
50
+ export declare const EMPTY_STRING = "";
@@ -1,49 +1,49 @@
1
- /**
2
- * Check if value is a function.
3
- *
4
- * @param value
5
- * @return
6
- */
7
- export declare function func(value: any): boolean;
8
- /**
9
- * Check if value is an array.
10
- *
11
- * @param value
12
- * @return
13
- */
14
- export declare function array(value: any): boolean;
15
- /**
16
- * Check if value is an object.
17
- *
18
- * @param value
19
- * @return
20
- */
21
- export declare function object(value: any): boolean;
22
- /**
23
- * Check if value is a string.
24
- *
25
- * @param value
26
- * @return
27
- */
28
- export declare function string(value: any): boolean;
29
- /**
30
- * Check if value is a number.
31
- *
32
- * @param value
33
- * @return
34
- */
35
- export declare function number(value: any): boolean;
36
- /**
37
- * Check if value is boolean.
38
- *
39
- * @param value
40
- * @return
41
- */
42
- export declare function boolean(value: any): boolean;
43
- /**
44
- * Check if value is numeric.
45
- *
46
- * @param value
47
- * @return
48
- */
49
- export declare function numeric(value: any): boolean;
1
+ /**
2
+ * Check if value is a function.
3
+ *
4
+ * @param value
5
+ * @return
6
+ */
7
+ export declare function func(value: any): boolean;
8
+ /**
9
+ * Check if value is an array.
10
+ *
11
+ * @param value
12
+ * @return
13
+ */
14
+ export declare function array(value: any): boolean;
15
+ /**
16
+ * Check if value is an object.
17
+ *
18
+ * @param value
19
+ * @return
20
+ */
21
+ export declare function object(value: any): boolean;
22
+ /**
23
+ * Check if value is a string.
24
+ *
25
+ * @param value
26
+ * @return
27
+ */
28
+ export declare function string(value: any): boolean;
29
+ /**
30
+ * Check if value is a number.
31
+ *
32
+ * @param value
33
+ * @return
34
+ */
35
+ export declare function number(value: any): boolean;
36
+ /**
37
+ * Check if value is boolean.
38
+ *
39
+ * @param value
40
+ * @return
41
+ */
42
+ export declare function boolean(value: any): boolean;
43
+ /**
44
+ * Check if value is numeric.
45
+ *
46
+ * @param value
47
+ * @return
48
+ */
49
+ export declare function numeric(value: any): boolean;
@@ -1,102 +1,102 @@
1
- /**
2
- * 连字符转成驼峰
3
- *
4
- * @param str
5
- * @return 驼峰格式的字符串
6
- */
7
- export declare function camelize(str: string): string;
8
- /**
9
- * 驼峰转成连字符
10
- *
11
- * @param str
12
- * @return 连字符格式的字符串
13
- */
14
- export declare function hyphenate(str: string): string;
15
- /**
16
- * 首字母大写
17
- *
18
- * @param str
19
- * @return
20
- */
21
- export declare function capitalize(str: string): string;
22
- /**
23
- * 清除两侧空白符
24
- *
25
- * @param str
26
- * @return 清除两侧空白符的字符串
27
- */
28
- export declare function trim(str: any): string;
29
- /**
30
- * 截取字符串
31
- *
32
- * @param str
33
- * @param start
34
- * @param end
35
- * @return
36
- */
37
- export declare function slice(str: string, start: number, end?: number): string;
38
- /**
39
- * 获取子串的起始位置
40
- *
41
- * @param str
42
- * @param part
43
- * @param start
44
- * @return
45
- */
46
- export declare function indexOf(str: string, part: string, start?: number): number;
47
- /**
48
- * 获取子串的起始位置
49
- *
50
- * @param str
51
- * @param part
52
- * @param end
53
- * @return
54
- */
55
- export declare function lastIndexOf(str: string, part: string, end?: number): number;
56
- /**
57
- * str 是否以 part 开头
58
- *
59
- * @param str
60
- * @param part
61
- * @return
62
- */
63
- export declare function startsWith(str: string, part: string): boolean;
64
- /**
65
- * str 是否以 part 结束
66
- *
67
- * @param str
68
- * @param part
69
- * @return
70
- */
71
- export declare function endsWith(str: string, part: string): boolean;
72
- /**
73
- * 获取某个位置的字符
74
- */
75
- export declare function charAt(str: string, index?: number): string;
76
- /**
77
- * 获取某个位置的字符编码
78
- */
79
- export declare function codeAt(str: string, index?: number): number;
80
- /**
81
- * 大写格式
82
- */
83
- export declare function upper(str: string): string;
84
- /**
85
- * 小写格式
86
- */
87
- export declare function lower(str: string): string;
88
- /**
89
- * str 是否包含 part
90
- *
91
- * @param str
92
- * @param part
93
- * @return 是否包含
94
- */
95
- export declare function has(str: string, part: string): boolean;
96
- /**
97
- * 判断长度大于 0 的字符串
98
- *
99
- * @param str
100
- * @return
101
- */
102
- export declare function falsy(str: any): boolean;
1
+ /**
2
+ * 连字符转成驼峰
3
+ *
4
+ * @param str
5
+ * @return 驼峰格式的字符串
6
+ */
7
+ export declare function camelize(str: string): string;
8
+ /**
9
+ * 驼峰转成连字符
10
+ *
11
+ * @param str
12
+ * @return 连字符格式的字符串
13
+ */
14
+ export declare function hyphenate(str: string): string;
15
+ /**
16
+ * 首字母大写
17
+ *
18
+ * @param str
19
+ * @return
20
+ */
21
+ export declare function capitalize(str: string): string;
22
+ /**
23
+ * 清除两侧空白符
24
+ *
25
+ * @param str
26
+ * @return 清除两侧空白符的字符串
27
+ */
28
+ export declare function trim(str: any): string;
29
+ /**
30
+ * 截取字符串
31
+ *
32
+ * @param str
33
+ * @param start
34
+ * @param end
35
+ * @return
36
+ */
37
+ export declare function slice(str: string, start: number, end?: number): string;
38
+ /**
39
+ * 获取子串的起始位置
40
+ *
41
+ * @param str
42
+ * @param part
43
+ * @param start
44
+ * @return
45
+ */
46
+ export declare function indexOf(str: string, part: string, start?: number): number;
47
+ /**
48
+ * 获取子串的起始位置
49
+ *
50
+ * @param str
51
+ * @param part
52
+ * @param end
53
+ * @return
54
+ */
55
+ export declare function lastIndexOf(str: string, part: string, end?: number): number;
56
+ /**
57
+ * str 是否以 part 开头
58
+ *
59
+ * @param str
60
+ * @param part
61
+ * @return
62
+ */
63
+ export declare function startsWith(str: string, part: string): boolean;
64
+ /**
65
+ * str 是否以 part 结束
66
+ *
67
+ * @param str
68
+ * @param part
69
+ * @return
70
+ */
71
+ export declare function endsWith(str: string, part: string): boolean;
72
+ /**
73
+ * 获取某个位置的字符
74
+ */
75
+ export declare function charAt(str: string, index?: number): string;
76
+ /**
77
+ * 获取某个位置的字符编码
78
+ */
79
+ export declare function codeAt(str: string, index?: number): number;
80
+ /**
81
+ * 大写格式
82
+ */
83
+ export declare function upper(str: string): string;
84
+ /**
85
+ * 小写格式
86
+ */
87
+ export declare function lower(str: string): string;
88
+ /**
89
+ * str 是否包含 part
90
+ *
91
+ * @param str
92
+ * @param part
93
+ * @return 是否包含
94
+ */
95
+ export declare function has(str: string, part: string): boolean;
96
+ /**
97
+ * 判断长度大于 0 的字符串
98
+ *
99
+ * @param str
100
+ * @return
101
+ */
102
+ export declare function falsy(str: any): boolean;