aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters/NotifyPresenter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/presenters/NotifyPresenter.ts')
-rw-r--r--src/background/presenters/NotifyPresenter.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/background/presenters/NotifyPresenter.ts b/src/background/presenters/NotifyPresenter.ts
index a81f227..c83c205 100644
--- a/src/background/presenters/NotifyPresenter.ts
+++ b/src/background/presenters/NotifyPresenter.ts
@@ -1,8 +1,12 @@
const NOTIFICATION_ID = 'vimvixen-update';
export default class NotifyPresenter {
- notify(title, message, onclick) {
- const listener = (id) => {
+ notify(
+ title: string,
+ message: string,
+ onclick: () => void,
+ ): Promise<string> {
+ const listener = (id: string) => {
if (id !== NOTIFICATION_ID) {
return;
}