@hysc/meeting 5.0.117 → 5.0.118
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/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.d.mts +4099 -0
- package/dist/index.d.ts +4099 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +11 -16
- package/esm/index.js +0 -40422
- package/esm/index.js.map +0 -7
- package/esm/src/BMChat/BMChatVM.d.ts +0 -26
- package/esm/src/BMChat/BMMessageInfo.d.ts +0 -31
- package/esm/src/BMRoom/BMLiveVM.d.ts +0 -35
- package/esm/src/BMRoom/BMRoom.d.ts +0 -705
- package/esm/src/BMRoom/BMRoomInfo.d.ts +0 -215
- package/esm/src/BMRoom/BMRoomVM.d.ts +0 -317
- package/esm/src/BMRoom/RoomEvent.d.ts +0 -1
- package/esm/src/BMStream/BMSpeaker.d.ts +0 -26
- package/esm/src/BMStream/BMStreamModel.d.ts +0 -306
- package/esm/src/BMStream/BMStreamModelVM.d.ts +0 -260
- package/esm/src/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/esm/src/BMStream/sortStream.d.ts +0 -30
- package/esm/src/BMUser/BMUser.d.ts +0 -156
- package/esm/src/BMUser/BMUserVM.d.ts +0 -177
- package/esm/src/SingletonQueue/SingletonQueue.d.ts +0 -26
- package/esm/src/audioPlay/AudioPlay.d.ts +0 -31
- package/esm/src/bjy-common/function/debounce.d.ts +0 -9
- package/esm/src/bjy-common/function/execute.d.ts +0 -9
- package/esm/src/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/esm/src/bjy-common/function/isDef.d.ts +0 -1
- package/esm/src/bjy-common/function/isNative.d.ts +0 -1
- package/esm/src/bjy-common/function/isUndef.d.ts +0 -1
- package/esm/src/bjy-common/function/nextTick.d.ts +0 -2
- package/esm/src/bjy-common/function/throttling.d.ts +0 -9
- package/esm/src/bjy-common/function/toNumber.d.ts +0 -1
- package/esm/src/bjy-common/function/toString.d.ts +0 -1
- package/esm/src/bjy-common/type/api.d.ts +0 -66
- package/esm/src/bjy-common/type/options.d.ts +0 -7
- package/esm/src/bjy-common/type/type.d.ts +0 -90
- package/esm/src/bjy-common/util/CustomEvent.d.ts +0 -30
- package/esm/src/bjy-common/util/Emitter.d.ts +0 -57
- package/esm/src/bjy-common/util/NextTask.d.ts +0 -28
- package/esm/src/bjy-common/util/Sleep.d.ts +0 -14
- package/esm/src/bjy-common/util/Timer.d.ts +0 -13
- package/esm/src/bjy-common/util/array.d.ts +0 -96
- package/esm/src/bjy-common/util/browser.d.ts +0 -6
- package/esm/src/bjy-common/util/constant.d.ts +0 -50
- package/esm/src/bjy-common/util/holder.d.ts +0 -6
- package/esm/src/bjy-common/util/is.d.ts +0 -49
- package/esm/src/bjy-common/util/keypath.d.ts +0 -41
- package/esm/src/bjy-common/util/logger.d.ts +0 -42
- package/esm/src/bjy-common/util/network.d.ts +0 -4
- package/esm/src/bjy-common/util/object.d.ts +0 -83
- package/esm/src/bjy-common/util/os.d.ts +0 -14
- package/esm/src/bjy-common/util/string.d.ts +0 -102
- package/esm/src/constants.d.ts +0 -129
- package/esm/src/error/RTCError.d.ts +0 -20
- package/esm/src/error/errorMap.d.ts +0 -70
- package/esm/src/error/errorType.d.ts +0 -96
- package/esm/src/handleEvent/attachEvents.d.ts +0 -47
- package/esm/src/handleEvent/brtcNetEvent.d.ts +0 -9
- package/esm/src/handleEvent/customMessageEvent.d.ts +0 -2
- package/esm/src/handleEvent/handleParticipantEvent.d.ts +0 -24
- package/esm/src/handleEvent/handleRoomEvent.d.ts +0 -20
- package/esm/src/handleEvent/messageEvent.d.ts +0 -5
- package/esm/src/handleEvent/pullUser.d.ts +0 -7
- package/esm/src/handleEvent/roomErrEvent.d.ts +0 -9
- package/esm/src/handleEvent/streamEvent.d.ts +0 -22
- package/esm/src/index.d.ts +0 -4
- package/esm/src/logger/logger.d.ts +0 -86
- package/esm/src/type/customStats.d.ts +0 -123
- package/esm/src/type/index.d.ts +0 -9
- package/esm/src/type/stream.d.ts +0 -12
- package/esm/src/type/user.d.ts +0 -9
- package/esm/src/util/PackLoss.d.ts +0 -7
- package/esm/src/util/Pqueue.d.ts +0 -62
- package/esm/src/util/Privileges.d.ts +0 -20
- package/esm/src/util/ReportCollector.d.ts +0 -22
- package/esm/src/util/Stutter.d.ts +0 -19
- package/esm/src/util/Thread.d.ts +0 -12
- package/esm/src/util/base64.d.ts +0 -4
- package/esm/src/util/checkPermissions.d.ts +0 -1
- package/esm/src/util/checkSystemRequirements.d.ts +0 -1
- package/esm/src/util/constant.d.ts +0 -67
- package/esm/src/util/devices.d.ts +0 -2
- package/esm/src/util/emitter.d.ts +0 -43
- package/esm/src/util/formatUserId.d.ts +0 -2
- package/esm/src/util/is.d.ts +0 -70
- package/esm/src/util/peerToPeerProbe.d.ts +0 -9
- package/esm/src/util/request.d.ts +0 -45
- package/esm/src/util/roomUtils.d.ts +0 -9
- package/esm/src/util/sortUtils.d.ts +0 -10
- package/esm/src/util/util.d.ts +0 -78
- package/umd/BMChat/BMChatVM.d.ts +0 -24
- package/umd/BMChat/BMMessageInfo.d.ts +0 -31
- package/umd/BMRoom/BMLiveVM.d.ts +0 -35
- package/umd/BMRoom/BMRoom.d.ts +0 -638
- package/umd/BMRoom/BMRoomInfo.d.ts +0 -189
- package/umd/BMRoom/BMRoomVM.d.ts +0 -284
- package/umd/BMRoom/RoomEvent.d.ts +0 -1
- package/umd/BMRoom/attachEvents.d.ts +0 -27
- package/umd/BMStream/BMSpeaker.d.ts +0 -44
- package/umd/BMStream/BMStreamModel.d.ts +0 -262
- package/umd/BMStream/BMStreamModelVM.d.ts +0 -235
- package/umd/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/umd/BMUser/BMUser.d.ts +0 -153
- package/umd/BMUser/BMUserVM.d.ts +0 -131
- package/umd/bjy-common/function/debounce.d.ts +0 -9
- package/umd/bjy-common/function/execute.d.ts +0 -9
- package/umd/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/umd/bjy-common/function/isDef.d.ts +0 -1
- package/umd/bjy-common/function/isNative.d.ts +0 -1
- package/umd/bjy-common/function/isUndef.d.ts +0 -1
- package/umd/bjy-common/function/nextTick.d.ts +0 -2
- package/umd/bjy-common/function/throttling.d.ts +0 -9
- package/umd/bjy-common/function/toNumber.d.ts +0 -1
- package/umd/bjy-common/function/toString.d.ts +0 -1
- package/umd/bjy-common/type/api.d.ts +0 -66
- package/umd/bjy-common/type/options.d.ts +0 -7
- package/umd/bjy-common/type/type.d.ts +0 -90
- package/umd/bjy-common/util/CustomEvent.d.ts +0 -30
- package/umd/bjy-common/util/Emitter.d.ts +0 -57
- package/umd/bjy-common/util/NextTask.d.ts +0 -28
- package/umd/bjy-common/util/Sleep.d.ts +0 -14
- package/umd/bjy-common/util/Timer.d.ts +0 -13
- package/umd/bjy-common/util/array.d.ts +0 -96
- package/umd/bjy-common/util/browser.d.ts +0 -6
- package/umd/bjy-common/util/constant.d.ts +0 -50
- package/umd/bjy-common/util/holder.d.ts +0 -6
- package/umd/bjy-common/util/is.d.ts +0 -49
- package/umd/bjy-common/util/keypath.d.ts +0 -41
- package/umd/bjy-common/util/logger.d.ts +0 -42
- package/umd/bjy-common/util/network.d.ts +0 -4
- package/umd/bjy-common/util/object.d.ts +0 -83
- package/umd/bjy-common/util/os.d.ts +0 -14
- package/umd/bjy-common/util/string.d.ts +0 -102
- package/umd/boom-core/src/BoomCore/BCClient/clientEventType.d.ts +0 -428
- package/umd/boom-meeting/src/BMChat/BMChatVM.d.ts +0 -26
- package/umd/boom-meeting/src/BMChat/BMMessageInfo.d.ts +0 -31
- package/umd/boom-meeting/src/BMRoom/BMLiveVM.d.ts +0 -35
- package/umd/boom-meeting/src/BMRoom/BMRoom.d.ts +0 -699
- package/umd/boom-meeting/src/BMRoom/BMRoomInfo.d.ts +0 -215
- package/umd/boom-meeting/src/BMRoom/BMRoomVM.d.ts +0 -317
- package/umd/boom-meeting/src/BMRoom/RoomEvent.d.ts +0 -1
- package/umd/boom-meeting/src/BMRoom/attachEvents.d.ts +0 -34
- package/umd/boom-meeting/src/BMStream/BMSpeaker.d.ts +0 -26
- package/umd/boom-meeting/src/BMStream/BMStreamModel.d.ts +0 -305
- package/umd/boom-meeting/src/BMStream/BMStreamModelVM.d.ts +0 -259
- package/umd/boom-meeting/src/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/umd/boom-meeting/src/BMStream/sortStream.d.ts +0 -30
- package/umd/boom-meeting/src/BMUser/BMUser.d.ts +0 -156
- package/umd/boom-meeting/src/BMUser/BMUserVM.d.ts +0 -177
- package/umd/boom-meeting/src/EventHandler.d.ts +0 -20
- package/umd/boom-meeting/src/SingletonQueue/SingletonQueue.d.ts +0 -26
- package/umd/boom-meeting/src/audioPlay/AudioPlay.d.ts +0 -31
- package/umd/boom-meeting/src/bjy-common/function/debounce.d.ts +0 -9
- package/umd/boom-meeting/src/bjy-common/function/execute.d.ts +0 -9
- package/umd/boom-meeting/src/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/isDef.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/isNative.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/isUndef.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/nextTick.d.ts +0 -2
- package/umd/boom-meeting/src/bjy-common/function/throttling.d.ts +0 -9
- package/umd/boom-meeting/src/bjy-common/function/toNumber.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/function/toString.d.ts +0 -1
- package/umd/boom-meeting/src/bjy-common/type/api.d.ts +0 -66
- package/umd/boom-meeting/src/bjy-common/type/options.d.ts +0 -7
- package/umd/boom-meeting/src/bjy-common/type/type.d.ts +0 -90
- package/umd/boom-meeting/src/bjy-common/util/CustomEvent.d.ts +0 -30
- package/umd/boom-meeting/src/bjy-common/util/Emitter.d.ts +0 -57
- package/umd/boom-meeting/src/bjy-common/util/NextTask.d.ts +0 -28
- package/umd/boom-meeting/src/bjy-common/util/Sleep.d.ts +0 -14
- package/umd/boom-meeting/src/bjy-common/util/Timer.d.ts +0 -13
- package/umd/boom-meeting/src/bjy-common/util/array.d.ts +0 -96
- package/umd/boom-meeting/src/bjy-common/util/browser.d.ts +0 -6
- package/umd/boom-meeting/src/bjy-common/util/constant.d.ts +0 -50
- package/umd/boom-meeting/src/bjy-common/util/holder.d.ts +0 -6
- package/umd/boom-meeting/src/bjy-common/util/is.d.ts +0 -49
- package/umd/boom-meeting/src/bjy-common/util/keypath.d.ts +0 -41
- package/umd/boom-meeting/src/bjy-common/util/logger.d.ts +0 -42
- package/umd/boom-meeting/src/bjy-common/util/network.d.ts +0 -4
- package/umd/boom-meeting/src/bjy-common/util/object.d.ts +0 -83
- package/umd/boom-meeting/src/bjy-common/util/os.d.ts +0 -14
- package/umd/boom-meeting/src/bjy-common/util/string.d.ts +0 -102
- package/umd/boom-meeting/src/constants.d.ts +0 -129
- package/umd/boom-meeting/src/error/RTCError.d.ts +0 -20
- package/umd/boom-meeting/src/error/errorMap.d.ts +0 -70
- package/umd/boom-meeting/src/error/errorType.d.ts +0 -96
- package/umd/boom-meeting/src/handleEvent/attachEvents.d.ts +0 -48
- package/umd/boom-meeting/src/handleEvent/brtcNetEvent.d.ts +0 -9
- package/umd/boom-meeting/src/handleEvent/customMessageEvent.d.ts +0 -2
- package/umd/boom-meeting/src/handleEvent/handleParticipantEvent.d.ts +0 -24
- package/umd/boom-meeting/src/handleEvent/handleRoomEvent.d.ts +0 -20
- package/umd/boom-meeting/src/handleEvent/messageEvent.d.ts +0 -5
- package/umd/boom-meeting/src/handleEvent/pullUser.d.ts +0 -7
- package/umd/boom-meeting/src/handleEvent/roomErrEvent.d.ts +0 -9
- package/umd/boom-meeting/src/handleEvent/streamEvent.d.ts +0 -22
- package/umd/boom-meeting/src/logger/logger.d.ts +0 -86
- package/umd/boom-meeting/src/type/customStats.d.ts +0 -123
- package/umd/boom-meeting/src/type/index.d.ts +0 -9
- package/umd/boom-meeting/src/type/stream.d.ts +0 -15
- package/umd/boom-meeting/src/type/user.d.ts +0 -9
- package/umd/boom-meeting/src/util/PackLoss.d.ts +0 -7
- package/umd/boom-meeting/src/util/Pqueue.d.ts +0 -62
- package/umd/boom-meeting/src/util/Privileges.d.ts +0 -20
- package/umd/boom-meeting/src/util/ReportCollector.d.ts +0 -22
- package/umd/boom-meeting/src/util/Stutter.d.ts +0 -19
- package/umd/boom-meeting/src/util/Thread.d.ts +0 -12
- package/umd/boom-meeting/src/util/base64.d.ts +0 -4
- package/umd/boom-meeting/src/util/checkPermissions.d.ts +0 -1
- package/umd/boom-meeting/src/util/checkSystemRequirements.d.ts +0 -1
- package/umd/boom-meeting/src/util/constant.d.ts +0 -67
- package/umd/boom-meeting/src/util/devices.d.ts +0 -2
- package/umd/boom-meeting/src/util/emitter.d.ts +0 -43
- package/umd/boom-meeting/src/util/formatUserId.d.ts +0 -2
- package/umd/boom-meeting/src/util/is.d.ts +0 -70
- package/umd/boom-meeting/src/util/peerToPeerProbe.d.ts +0 -9
- package/umd/boom-meeting/src/util/request.d.ts +0 -45
- package/umd/boom-meeting/src/util/roomUtils.d.ts +0 -9
- package/umd/boom-meeting/src/util/sortUtils.d.ts +0 -10
- package/umd/boom-meeting/src/util/util.d.ts +0 -78
- package/umd/constants.d.ts +0 -107
- package/umd/error/RTCError.d.ts +0 -20
- package/umd/error/errorMap.d.ts +0 -70
- package/umd/error/errorType.d.ts +0 -96
- package/umd/index.d.ts +0 -2
- package/umd/index.js +0 -29
- package/umd/index.js.map +0 -1
- package/umd/logger/logger.d.ts +0 -86
- package/umd/src/BMChat/BMChatVM.d.ts +0 -25
- package/umd/src/BMChat/BMMessageInfo.d.ts +0 -31
- package/umd/src/BMRoom/BMLiveVM.d.ts +0 -35
- package/umd/src/BMRoom/BMRoom.d.ts +0 -696
- package/umd/src/BMRoom/BMRoomInfo.d.ts +0 -213
- package/umd/src/BMRoom/BMRoomVM.d.ts +0 -302
- package/umd/src/BMRoom/RoomEvent.d.ts +0 -1
- package/umd/src/BMRoom/attachEvents.d.ts +0 -34
- package/umd/src/BMStream/BMSpeaker.d.ts +0 -44
- package/umd/src/BMStream/BMStreamModel.d.ts +0 -260
- package/umd/src/BMStream/BMStreamModelVM.d.ts +0 -252
- package/umd/src/BMStream/getHTMLMediaStreamOptions.d.ts +0 -35
- package/umd/src/BMUser/BMUser.d.ts +0 -156
- package/umd/src/BMUser/BMUserVM.d.ts +0 -140
- package/umd/src/EventHandler.d.ts +0 -20
- package/umd/src/bjy-common/function/debounce.d.ts +0 -9
- package/umd/src/bjy-common/function/execute.d.ts +0 -9
- package/umd/src/bjy-common/function/getErrorMessage.d.ts +0 -1
- package/umd/src/bjy-common/function/isDef.d.ts +0 -1
- package/umd/src/bjy-common/function/isNative.d.ts +0 -1
- package/umd/src/bjy-common/function/isUndef.d.ts +0 -1
- package/umd/src/bjy-common/function/nextTick.d.ts +0 -2
- package/umd/src/bjy-common/function/throttling.d.ts +0 -9
- package/umd/src/bjy-common/function/toNumber.d.ts +0 -1
- package/umd/src/bjy-common/function/toString.d.ts +0 -1
- package/umd/src/bjy-common/type/api.d.ts +0 -66
- package/umd/src/bjy-common/type/options.d.ts +0 -7
- package/umd/src/bjy-common/type/type.d.ts +0 -90
- package/umd/src/bjy-common/util/CustomEvent.d.ts +0 -30
- package/umd/src/bjy-common/util/Emitter.d.ts +0 -57
- package/umd/src/bjy-common/util/NextTask.d.ts +0 -28
- package/umd/src/bjy-common/util/Sleep.d.ts +0 -14
- package/umd/src/bjy-common/util/Timer.d.ts +0 -13
- package/umd/src/bjy-common/util/array.d.ts +0 -96
- package/umd/src/bjy-common/util/browser.d.ts +0 -6
- package/umd/src/bjy-common/util/constant.d.ts +0 -50
- package/umd/src/bjy-common/util/holder.d.ts +0 -6
- package/umd/src/bjy-common/util/is.d.ts +0 -49
- package/umd/src/bjy-common/util/keypath.d.ts +0 -41
- package/umd/src/bjy-common/util/logger.d.ts +0 -42
- package/umd/src/bjy-common/util/network.d.ts +0 -4
- package/umd/src/bjy-common/util/object.d.ts +0 -83
- package/umd/src/bjy-common/util/os.d.ts +0 -14
- package/umd/src/bjy-common/util/string.d.ts +0 -102
- package/umd/src/constants.d.ts +0 -112
- package/umd/src/error/RTCError.d.ts +0 -20
- package/umd/src/error/errorMap.d.ts +0 -70
- package/umd/src/error/errorType.d.ts +0 -96
- package/umd/src/index.d.ts +0 -2
- package/umd/src/logger/logger.d.ts +0 -86
- package/umd/src/type/customStats.d.ts +0 -118
- package/umd/src/type/index.d.ts +0 -9
- package/umd/src/type/stream.d.ts +0 -17
- package/umd/src/type/user.d.ts +0 -9
- package/umd/src/util/PackLoss.d.ts +0 -7
- package/umd/src/util/Pqueue.d.ts +0 -61
- package/umd/src/util/Privileges.d.ts +0 -20
- package/umd/src/util/ReportCollector.d.ts +0 -22
- package/umd/src/util/Stutter.d.ts +0 -19
- package/umd/src/util/base64.d.ts +0 -4
- package/umd/src/util/checkPermissions.d.ts +0 -1
- package/umd/src/util/checkSystemRequirements.d.ts +0 -1
- package/umd/src/util/constant.d.ts +0 -67
- package/umd/src/util/devices.d.ts +0 -2
- package/umd/src/util/emitter.d.ts +0 -19
- package/umd/src/util/formatUserId.d.ts +0 -2
- package/umd/src/util/is.d.ts +0 -70
- package/umd/src/util/peerToPeerProbe.d.ts +0 -9
- package/umd/src/util/request.d.ts +0 -45
- package/umd/src/util/roomUtils.d.ts +0 -9
- package/umd/src/util/sortUtils.d.ts +0 -10
- package/umd/src/util/util.d.ts +0 -77
- package/umd/type/customStats.d.ts +0 -117
- package/umd/type/index.d.ts +0 -9
- package/umd/type/stream.d.ts +0 -17
- package/umd/type/user.d.ts +0 -9
- package/umd/util/PackLoss.d.ts +0 -7
- package/umd/util/Pqueue.d.ts +0 -61
- package/umd/util/Privileges.d.ts +0 -20
- package/umd/util/ReportCollector.d.ts +0 -22
- package/umd/util/Stutter.d.ts +0 -19
- package/umd/util/base64.d.ts +0 -4
- package/umd/util/checkPermissions.d.ts +0 -1
- package/umd/util/checkSystemRequirements.d.ts +0 -1
- package/umd/util/constant.d.ts +0 -67
- package/umd/util/devices.d.ts +0 -2
- package/umd/util/emitter.d.ts +0 -18
- package/umd/util/formatUserId.d.ts +0 -2
- package/umd/util/is.d.ts +0 -70
- package/umd/util/peerToPeerProbe.d.ts +0 -9
- package/umd/util/request.d.ts +0 -45
- package/umd/util/roomUtils.d.ts +0 -9
- package/umd/util/sortUtils.d.ts +0 -10
- package/umd/util/util.d.ts +0 -76
- package/umd/utils/BoomError.d.ts +0 -19
- package/umd/utils/ErrorTypes.d.ts +0 -139
- package/umd/utils/index.d.ts +0 -9
|
@@ -1,49 +0,0 @@
|
|
|
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,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 判断 keypath 是否以 prefix 开头,如果是,返回匹配上的前缀长度,否则返回 -1
|
|
3
|
-
*
|
|
4
|
-
* @param keypath
|
|
5
|
-
* @param prefix
|
|
6
|
-
* @return
|
|
7
|
-
*/
|
|
8
|
-
export declare function match(keypath: string, prefix: string): number;
|
|
9
|
-
/**
|
|
10
|
-
* 遍历 keypath 的每个部分
|
|
11
|
-
*
|
|
12
|
-
* @param keypath
|
|
13
|
-
* @param callback 返回 false 可中断遍历
|
|
14
|
-
*/
|
|
15
|
-
export declare function each(keypath: string, callback: (key: string, isLast: boolean) => boolean | void): void;
|
|
16
|
-
/**
|
|
17
|
-
* 路径组合
|
|
18
|
-
*
|
|
19
|
-
* @param keypath1
|
|
20
|
-
* @param keypath2
|
|
21
|
-
*/
|
|
22
|
-
export declare function join(keypath1: string, keypath2: string): string;
|
|
23
|
-
/**
|
|
24
|
-
* 是否模糊匹配
|
|
25
|
-
*
|
|
26
|
-
* @param keypath
|
|
27
|
-
*/
|
|
28
|
-
export declare function isFuzzy(keypath: string): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* 模糊匹配 keypath
|
|
31
|
-
*
|
|
32
|
-
* @param keypath
|
|
33
|
-
* @param pattern
|
|
34
|
-
*/
|
|
35
|
-
export declare function matchFuzzy(keypath: string, pattern: string): string | void;
|
|
36
|
-
/**
|
|
37
|
-
* 返回 keypath 的根路径
|
|
38
|
-
*
|
|
39
|
-
* @param keypath
|
|
40
|
-
*/
|
|
41
|
-
export declare function rootPath(keypath: string): string;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const DEBUG = 1;
|
|
2
|
-
export declare const INFO = 2;
|
|
3
|
-
export declare const WARN = 3;
|
|
4
|
-
export declare const ERROR = 4;
|
|
5
|
-
export declare const FATAL = 5;
|
|
6
|
-
/**
|
|
7
|
-
* 打印 debug 日志
|
|
8
|
-
*
|
|
9
|
-
* @param msg
|
|
10
|
-
*/
|
|
11
|
-
export declare function debug(msg: string, tag?: string): void;
|
|
12
|
-
/**
|
|
13
|
-
* 打印 info 日志
|
|
14
|
-
*
|
|
15
|
-
* @param msg
|
|
16
|
-
*/
|
|
17
|
-
export declare function info(msg: string, tag?: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* 打印 call 日志
|
|
20
|
-
*
|
|
21
|
-
* @param msg
|
|
22
|
-
* @param args
|
|
23
|
-
*/
|
|
24
|
-
export declare function call(msg: string, tag?: string, args?: any): void;
|
|
25
|
-
/**
|
|
26
|
-
* 打印 warn 日志
|
|
27
|
-
*
|
|
28
|
-
* @param msg
|
|
29
|
-
*/
|
|
30
|
-
export declare function warn(msg: string, tag?: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* 打印 error 日志
|
|
33
|
-
*
|
|
34
|
-
* @param msg
|
|
35
|
-
*/
|
|
36
|
-
export declare function error(msg: string, tag?: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* 致命错误,中断程序
|
|
39
|
-
*
|
|
40
|
-
* @param msg
|
|
41
|
-
*/
|
|
42
|
-
export declare function fatal(msg: string, tag?: string): void;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Data } from '../type/type';
|
|
2
|
-
/**
|
|
3
|
-
* 获取对象的 key 的数组
|
|
4
|
-
*
|
|
5
|
-
* @param object
|
|
6
|
-
* @return
|
|
7
|
-
*/
|
|
8
|
-
export declare function keys(object: Data): string[];
|
|
9
|
-
/**
|
|
10
|
-
* 排序对象的 key
|
|
11
|
-
*
|
|
12
|
-
* @param object
|
|
13
|
-
* @param desc 是否逆序,默认从小到大排序
|
|
14
|
-
* @return
|
|
15
|
-
*/
|
|
16
|
-
export declare function sort(object: Data, desc?: boolean): string[];
|
|
17
|
-
/**
|
|
18
|
-
* 遍历对象
|
|
19
|
-
*
|
|
20
|
-
* @param object
|
|
21
|
-
* @param callback 返回 false 可停止遍历
|
|
22
|
-
*/
|
|
23
|
-
export declare function each<T>(object: Data, callback: (value: T, key: string) => boolean | void): void;
|
|
24
|
-
/**
|
|
25
|
-
* 清空对象所有的键值对
|
|
26
|
-
*
|
|
27
|
-
* @param object
|
|
28
|
-
*/
|
|
29
|
-
export declare function clear(object: Data): void;
|
|
30
|
-
/**
|
|
31
|
-
* 扩展对象
|
|
32
|
-
*
|
|
33
|
-
* @return
|
|
34
|
-
*/
|
|
35
|
-
export declare function extend(original: Data, object: Data): Data;
|
|
36
|
-
/**
|
|
37
|
-
* 合并对象
|
|
38
|
-
*
|
|
39
|
-
* @return
|
|
40
|
-
*/
|
|
41
|
-
export declare function merge(object1: Data | void, object2: Data | void): Data | void;
|
|
42
|
-
/**
|
|
43
|
-
* 拷贝对象
|
|
44
|
-
*
|
|
45
|
-
* @param object
|
|
46
|
-
* @param deep 是否需要深拷贝
|
|
47
|
-
* @return
|
|
48
|
-
*/
|
|
49
|
-
export declare function copy(object: any, deep?: boolean): any;
|
|
50
|
-
/**
|
|
51
|
-
* 从对象中查找一个 keypath
|
|
52
|
-
*
|
|
53
|
-
* 返回值是空时,表示没找到值
|
|
54
|
-
*
|
|
55
|
-
* @param object
|
|
56
|
-
* @param keypath
|
|
57
|
-
* @return
|
|
58
|
-
*/
|
|
59
|
-
export declare function get(object: any, keypath: string, defaultValue?: any): any;
|
|
60
|
-
/**
|
|
61
|
-
* 为对象设置一个键值对
|
|
62
|
-
*
|
|
63
|
-
* @param object
|
|
64
|
-
* @param keypath
|
|
65
|
-
* @param value
|
|
66
|
-
* @param autofill 是否自动填充不存在的对象,默认自动填充
|
|
67
|
-
*/
|
|
68
|
-
export declare function set(object: Data, keypath: string, value: any, autofill?: boolean): void;
|
|
69
|
-
/**
|
|
70
|
-
* 对象是否包含某个 key
|
|
71
|
-
*
|
|
72
|
-
* @param object
|
|
73
|
-
* @param key
|
|
74
|
-
* @return
|
|
75
|
-
*/
|
|
76
|
-
export declare function has(object: Data, key: string | number): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 是否是空对象
|
|
79
|
-
*
|
|
80
|
-
* @param object
|
|
81
|
-
* @return
|
|
82
|
-
*/
|
|
83
|
-
export declare function falsy(object: any): boolean;
|
|
@@ -1,102 +0,0 @@
|
|
|
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;
|