diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-19 00:38:45 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-19 00:38:45 -0500 |
commit | dcd60228ed753a146bcb56bb5bf51166835acfb7 (patch) | |
tree | f21c87ff98fd81af2d843fe1fe30c45b9e708af4 /ui/src/components/search.tsx | |
parent | a044718066623f19d51196d444bd199c1231cebe (diff) |
Strongly typing WebsocketJsonResponse. Forgot comment-form.tsx
Diffstat (limited to 'ui/src/components/search.tsx')
-rw-r--r-- | ui/src/components/search.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index f310b80c..ae0f8dbc 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -12,6 +12,7 @@ import { SearchForm, SearchResponse, SearchType, + WebSocketJsonResponse, } from '../interfaces'; import { WebSocketService } from '../services'; import { @@ -460,7 +461,7 @@ export class Search extends Component<any, SearchState> { ); } - parseMessage(msg: any) { + parseMessage(msg: WebSocketJsonResponse) { console.log(msg); let res = wsJsonToRes(msg); if (res.error) { |