Port the rest of the code

This commit is contained in:
redphx
2024-04-23 17:55:52 +07:00
parent 27a277309b
commit be0cbff344
30 changed files with 4338 additions and 234 deletions

View File

@@ -14,7 +14,7 @@ export class Toast {
static #timeout?: number | null;
static #DURATION = 3000;
static show(msg: string, status: string, options: ToastOptions={}) {
static show(msg: string, status?: string, options: Partial<ToastOptions>={}) {
options = options || {};
const args = Array.from(arguments) as [string, string, ToastOptions];