toast time config

This commit is contained in:
Olivier Gagnon
2021-12-20 13:29:04 -05:00
parent 25f78f2b30
commit 5dc9ac040a
6 changed files with 16 additions and 10 deletions

View File

@@ -5296,8 +5296,9 @@ export interface NS extends Singularity {
* Queue a toast (bottom-right notification).
* @param msg - Message in the toast.
* @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success.
* @param duration - Duration of toast in ms, defaults to 2000
*/
toast(msg: any, variant?: string): void;
toast(msg: any, variant?: string, duration?: number): void;
/**
* Download a file from the internet.