Types on src/background

This commit is contained in:
Shin'ya Ueoka 2019-05-01 11:04:24 +09:00
parent 0cffb09e24
commit 678020a3a2
48 changed files with 446 additions and 431 deletions

View file

@ -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;
}