From ba19c573a76c75469b5b2ed9093f8373907ea364 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 14 Mar 2021 14:54:12 +0900 Subject: Specific return type --- src/background/repositories/FindRepository.ts | 2 +- src/background/repositories/MarkRepository.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/background/repositories') diff --git a/src/background/repositories/FindRepository.ts b/src/background/repositories/FindRepository.ts index be56284..813e065 100644 --- a/src/background/repositories/FindRepository.ts +++ b/src/background/repositories/FindRepository.ts @@ -15,7 +15,7 @@ export default class FindRepository { return Promise.resolve(this.cache.get(FIND_KEYWORD_KEY)); } - setKeyword(keyword: string): Promise { + setKeyword(keyword: string): Promise { this.cache.set(FIND_KEYWORD_KEY, keyword); return Promise.resolve(); } diff --git a/src/background/repositories/MarkRepository.ts b/src/background/repositories/MarkRepository.ts index e2c1e94..493b25a 100644 --- a/src/background/repositories/MarkRepository.ts +++ b/src/background/repositories/MarkRepository.ts @@ -22,7 +22,7 @@ export default class MarkRepository { return Promise.resolve(mark); } - setMark(key: string, mark: GlobalMark): Promise { + setMark(key: string, mark: GlobalMark): Promise { const marks = this.getOrEmptyMarks(); marks[key] = { tabId: mark.tabId, url: mark.url, x: mark.x, y: mark.y }; this.cache.set(MARK_KEY, marks); -- cgit v1.2.3