mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-21 07:02:05 +02:00
DNET: Remove TS type annotation from doc example script (#2721)
This commit is contained in:
committed by
GitHub
parent
d3bdfc44a4
commit
d324a93bac
@@ -240,7 +240,7 @@ export const serverSolver = async (ns, hostname) => {
|
|||||||
|
|
||||||
/** Authenticates on 'ZeroLogon' type servers, which always have an empty password.
|
/** Authenticates on 'ZeroLogon' type servers, which always have an empty password.
|
||||||
* @param {NS} ns
|
* @param {NS} ns
|
||||||
* @param {string} hostname - the name of the server to attempt to authorize on
|
* @param {string} hostname - the name of the server to attempt to authorize on
|
||||||
*/
|
*/
|
||||||
const authenticateWithNoPassword = async (ns, hostname) => {
|
const authenticateWithNoPassword = async (ns, hostname) => {
|
||||||
const result = await ns.dnet.authenticate(hostname, "");
|
const result = await ns.dnet.authenticate(hostname, "");
|
||||||
@@ -248,9 +248,10 @@ const authenticateWithNoPassword = async (ns, hostname) => {
|
|||||||
return result.success;
|
return result.success;
|
||||||
};
|
};
|
||||||
|
|
||||||
// This lets you tab-complete putting "--tail" on the run command so you can see the script logs as it runs, if you want
|
/** This lets you tab-complete putting "--tail" on the run command so you can see the script logs as it runs, if you want
|
||||||
// If you add support to the script to take other arguments, you can add them here as well for convenience
|
* If you add support to the script to take other arguments, you can add them here as well for convenience
|
||||||
export function autocomplete(data: AutocompleteData) {
|
* @param {AutocompleteData} data */
|
||||||
|
export function autocomplete(data) {
|
||||||
return ["--tail"];
|
return ["--tail"];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user