API: make ns.atExit add the callback to an array instead of setting it (#1059)

This commit is contained in:
Shy
2024-03-06 01:22:45 +01:00
committed by GitHub
parent 4f4c6fe7e5
commit 4aaf845fca
7 changed files with 38 additions and 22 deletions

View File

@@ -7246,7 +7246,7 @@ export interface NS {
*
* Add callback to be executed when the script dies.
*/
atExit(f: () => void): void;
atExit(f: () => void, id?: string): void;
/**
* Move a file on the target server.