Merge pull request #3381 from HeinousTugboat/htugboat/toast-enum

Adds SnackbarVariant enum
This commit is contained in:
hydroflame
2022-04-13 00:34:09 -04:00
committed by GitHub
11 changed files with 46 additions and 31 deletions

View File

@@ -6227,7 +6227,7 @@ export interface NS {
* @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success.
* @param duration - Duration of toast in ms. Can also be `null` to create a persistent toast. Defaults to 2000
*/
toast(msg: any, variant?: string, duration?: number | null): void;
toast(msg: any, variant?: "success" | "info" | "warning" | "error", duration?: number | null): void;
/**
* Download a file from the internet.