Types on src/background
This commit is contained in:
parent
0cffb09e24
commit
678020a3a2
48 changed files with 446 additions and 431 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue