Update ESLint and Prettier
This commit is contained in:
1 parent
5a9e03db2c
commit
ac980116bd
110 files changed
+2993
-2794
No files matched your search
+6
-2
@@ -28,12 +28,16 @@ interface Notification {
|
||||
|
||||
const notifications = new Set<Notification>();
|
||||
|
||||
export function push(type, message, actions?): Notification {
|
||||
export function push(
|
||||
type: string,
|
||||
message: string,
|
||||
actions?: { [label: string]: () => void }
|
||||
): Notification {
|
||||
const n: Notification = {
|
||||
type: type,
|
||||
message: message,
|
||||
timestamp: Date.now(),
|
||||
actions: actions
|
||||
actions: actions,
|
||||
};
|
||||
notifications.add(n);
|
||||
m.redraw();
|
||||
|
||||
Reference in new issue
Block a user