@ohbug/core 2.2.1 → 2.2.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/dist/index.d.mts +30 -24
- package/dist/index.mjs +456 -582
- package/dist/index.mjs.map +1 -0
- package/package.json +18 -19
- package/dist/index.d.ts +0 -29
- package/dist/index.js +0 -639
package/dist/index.d.mts
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { OhbugClientConstructor, OhbugEventWithMethods, OhbugExtension } from
|
|
1
|
+
import { OhbugClientConstructor, OhbugEventWithMethods, OhbugExtension } from "@ohbug/types";
|
|
2
2
|
|
|
3
|
+
//#region src/client.d.ts
|
|
3
4
|
declare const Client: OhbugClientConstructor;
|
|
4
|
-
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/event.d.ts
|
|
5
7
|
declare function isEvent(eventLike: any): eventLike is OhbugEventWithMethods<any>;
|
|
6
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/extension.d.ts
|
|
7
10
|
declare function defineExtension(extension: OhbugExtension): OhbugExtension;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/types.d.ts
|
|
13
|
+
declare const EventTypes: {
|
|
14
|
+
readonly UNCAUGHT_ERROR: "uncaughtError";
|
|
15
|
+
readonly RESOURCE_ERROR: "resourceError";
|
|
16
|
+
readonly UNHANDLEDREJECTION_ERROR: "unhandledrejectionError";
|
|
17
|
+
readonly AJAX_ERROR: "ajaxError";
|
|
18
|
+
readonly FETCH_ERROR: "fetchError";
|
|
19
|
+
readonly WEBSOCKET_ERROR: "websocketError";
|
|
20
|
+
readonly UNKNOWN_ERROR: "unknownError";
|
|
21
|
+
readonly MESSAGE: "message";
|
|
22
|
+
readonly FEEDBACK: "feedback";
|
|
23
|
+
readonly VIEW: "view";
|
|
24
|
+
readonly REACT: "react";
|
|
25
|
+
readonly VUE: "vue";
|
|
26
|
+
readonly ANGULAR: "angular";
|
|
27
|
+
readonly MINIAPP_ERROR: "miniappError";
|
|
28
|
+
readonly MINIAPP_UNHANDLEDREJECTION_ERROR: "miniappUnhandledrejectionError";
|
|
29
|
+
readonly MINIAPP_PAGENOTFOUND_ERROR: "miniappPagenotfoundError";
|
|
30
|
+
readonly MINIAPP_MEMORYWARNING_ERROR: "miniappMemorywarningError";
|
|
31
|
+
};
|
|
32
|
+
type EventTypes = (typeof EventTypes)[keyof typeof EventTypes];
|
|
33
|
+
//#endregion
|
|
29
34
|
export { Client, EventTypes, defineExtension, isEvent };
|
|
35
|
+
//# sourceMappingURL=index.d.mts.map
|