Merge branch 'dev' of github.com:danielyxie/bitburner into dev

This commit is contained in:
Olivier Gagnon
2022-01-03 15:46:01 -05:00
14 changed files with 182 additions and 96 deletions

7
dist/bitburner.d.ts vendored
View File

@@ -2720,7 +2720,7 @@ export declare interface NS extends Singularity {
* @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the second argument numThreads must be filled in with a value.
* @returns Returns the PID of a successfully started script, and 0 otherwise.
*/
run(script: string, numThreads?: number, ...args: string[]): number;
run(script: string, numThreads?: number, ...args: Array<string | number | boolean>): number;
/**
* Start another script on any server.
@@ -2760,7 +2760,7 @@ export declare interface NS extends Singularity {
* @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the third argument numThreads must be filled in with a value.
* @returns Returns the PID of a successfully started script, and 0 otherwise.
*/
exec(script: string, host: string, numThreads?: number, ...args: string[]): number;
exec(script: string, host: string, numThreads?: number, ...args: Array<string | number | boolean>): number;
/**
* Terminate current script and start another in 10s.
@@ -3678,8 +3678,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
*/
toast(msg: any, variant?: string): void;
toast(msg: any, variant?: string, duration?: number): void;
/**
* Download a file from the internet.

16
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long