From 614778f6ad2633d90deffe6ef3d373c44967b10c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 4 May 2020 15:41:35 +0900 Subject: Fix message type --- src/background/controllers/CompletionController.ts | 4 ++-- src/console/clients/CompletionClient.ts | 4 ++-- src/shared/messages.ts | 2 +- 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 { + ): Promise { 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; -- cgit v1.2.3