app-devtools 0.23.0 → 0.24.0
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/main.d.ts +10 -3
- package/dist/main.js +1035 -925
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type RequestSubTypes = 'delete' | 'update' | 'create' | 'custom';
|
|
2
|
-
type RequestTypes = 'fetch' | 'mutation';
|
|
1
|
+
type RequestSubTypes = 'delete' | 'update' | 'create' | 'custom' | 'send' | 'receive';
|
|
2
|
+
type RequestTypes = 'ws' | 'fetch' | 'mutation';
|
|
3
3
|
type ApiRequest = {
|
|
4
4
|
id: string;
|
|
5
5
|
alias?: string;
|
|
@@ -43,6 +43,13 @@ type RegisterCallResult = (props: {
|
|
|
43
43
|
metadata?: unknown;
|
|
44
44
|
tags?: (string | null | undefined)[] | undefined;
|
|
45
45
|
}) => void;
|
|
46
|
+
declare function addWebsocketEvent({ type, response, payload, event, startTime, }: {
|
|
47
|
+
type: 'send' | 'receive';
|
|
48
|
+
event: string;
|
|
49
|
+
response?: unknown;
|
|
50
|
+
payload?: unknown;
|
|
51
|
+
startTime?: number;
|
|
52
|
+
}): void;
|
|
46
53
|
declare function addCall(request: {
|
|
47
54
|
payload: unknown;
|
|
48
55
|
path: string;
|
|
@@ -60,4 +67,4 @@ declare function initializeDevTools({ callsProcessor, shortcut, }: {
|
|
|
60
67
|
shortcut: string;
|
|
61
68
|
}): void;
|
|
62
69
|
|
|
63
|
-
export { RegisterCallResult, addCall, initializeDevTools };
|
|
70
|
+
export { RegisterCallResult, addCall, addWebsocketEvent, initializeDevTools };
|