summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-19 00:38:45 -0500
committerDessalines <tyhou13@gmx.com>2020-01-19 00:38:45 -0500
commitdcd60228ed753a146bcb56bb5bf51166835acfb7 (patch)
treef21c87ff98fd81af2d843fe1fe30c45b9e708af4 /ui/src/interfaces.ts
parenta044718066623f19d51196d444bd199c1231cebe (diff)
Strongly typing WebsocketJsonResponse. Forgot comment-form.tsx
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
index 3af5be02..63c60856 100644
--- a/ui/src/interfaces.ts
+++ b/ui/src/interfaces.ts
@@ -726,3 +726,9 @@ export interface WebSocketResponse {
data: ResponseType;
error?: string;
}
+
+export interface WebSocketJsonResponse {
+ op: string;
+ data: ResponseType;
+ error?: string;
+}