Merge pull request #2478 from nickofolas/update-toast-signature

Update toast signature
This commit is contained in:
hydroflame 2022-01-08 16:42:36 -05:00 committed by GitHub
commit 2b10c11913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
dist/bitburner.d.ts vendored

@ -3982,9 +3982,9 @@ export declare interface NS extends Singularity {
* Queue a toast (bottom-right notification). * Queue a toast (bottom-right notification).
* @param msg - Message in the toast. * @param msg - Message in the toast.
* @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success. * @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 * @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): void; toast(msg: any, variant?: string, duration?: number | null): void;
/** /**
* Download a file from the internet. * Download a file from the internet.

@ -5670,9 +5670,9 @@ export interface NS extends Singularity {
* Queue a toast (bottom-right notification). * Queue a toast (bottom-right notification).
* @param msg - Message in the toast. * @param msg - Message in the toast.
* @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success. * @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 * @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): void; toast(msg: any, variant?: string, duration?: number | null): void;
/** /**
* Download a file from the internet. * Download a file from the internet.