1
0

Added "type" argument to flashNotification (to distinguish between error and info)

This commit is contained in:
Zef Hemel
2022-07-14 13:32:28 +02:00
parent d57a9e79de
commit a8274d225c
6 changed files with 51 additions and 21 deletions
@@ -41,8 +41,11 @@ export function openUrl(url: string): Promise<void> {
return syscall("editor.openUrl", url);
}
export function flashNotification(message: string): Promise<void> {
return syscall("editor.flashNotification", message);
export function flashNotification(
message: string,
type: "info" | "error" = "info"
): Promise<void> {
return syscall("editor.flashNotification", message, type);
}
export function filterBox(