mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 04:05:46 +01:00
Document null duration for toasts
This commit is contained in:
parent
d74efd6a4a
commit
a971921417
4
dist/bitburner.d.ts
vendored
4
dist/bitburner.d.ts
vendored
@ -3982,9 +3982,9 @@ export declare 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
|
||||
* @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.
|
||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5670,9 +5670,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
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user