aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-05-04 15:41:35 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-05-04 16:40:38 +0900
commit614778f6ad2633d90deffe6ef3d373c44967b10c (patch)
treecad57e315a80b74f4e451fa9d835cf89c124b461
parenta6b8c8a1c2fe955343a420c814978822803d6933 (diff)
Fix message type
-rw-r--r--src/background/controllers/CompletionController.ts4
-rw-r--r--src/console/clients/CompletionClient.ts4
-rw-r--r--src/shared/messages.ts2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/background/controllers/CompletionController.ts b/src/background/controllers/CompletionController.ts
index 35538be..b00a0cb 100644
--- a/src/background/controllers/CompletionController.ts
+++ b/src/background/controllers/CompletionController.ts
@@ -4,7 +4,7 @@ import {
ConsoleRequestBookmarksResponse,
ConsoleRequestHistoryResponse,
ConsoleRequestSearchEnginesResponse,
- ConsoleRequesttabsResponse,
+ ConsoleRequestTabsResponse,
} from "../../shared/messages";
import { injectable } from "tsyringe";
import OpenCompletionUseCase from "../completion/OpenCompletionUseCase";
@@ -43,7 +43,7 @@ export default class CompletionController {
async queryTabs(
query: string,
excludePinned: boolean
- ): Promise<ConsoleRequesttabsResponse> {
+ ): Promise<ConsoleRequestTabsResponse> {
return this.tabCompletionUseCase.queryTabs(query, excludePinned);
}
diff --git a/src/console/clients/CompletionClient.ts b/src/console/clients/CompletionClient.ts
index 64119e8..a80918b 100644
--- a/src/console/clients/CompletionClient.ts
+++ b/src/console/clients/CompletionClient.ts
@@ -5,7 +5,7 @@ import {
ConsoleRequestBookmarksResponse,
ConsoleRequestHistoryResponse,
ConsoleRequestSearchEnginesResponse,
- ConsoleRequesttabsResponse,
+ ConsoleRequestTabsResponse,
} from "../../shared/messages";
import CompletionType from "../../shared/CompletionType";
import TabFlag from "../../shared/TabFlag";
@@ -74,7 +74,7 @@ export default class CompletionClient {
type: messages.CONSOLE_REQUEST_TABS,
query,
excludePinned,
- })) as ConsoleRequesttabsResponse;
+ })) as ConsoleRequestTabsResponse;
return resp;
}
diff --git a/src/shared/messages.ts b/src/shared/messages.ts
index f876b99..60d4c9e 100644
--- a/src/shared/messages.ts
+++ b/src/shared/messages.ts
@@ -127,7 +127,7 @@ export interface ConsoleGetPropertiesMessage {
type: typeof CONSOLE_GET_PROPERTIES;
}
-export type ConsoleRequesttabsResponse = {
+export type ConsoleRequestTabsResponse = {
index: number;
flag: TabFlag;
title: string;