mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
fix any in determineAllPossibilitesForTabCompletions
This commit is contained in:
parent
6afeb6972f
commit
8773b8e18d
@ -301,8 +301,10 @@ export async function determineAllPossibilitiesForTabCompletion(
|
|||||||
servers: GetAllServers().map((server) => server.hostname),
|
servers: GetAllServers().map((server) => server.hostname),
|
||||||
scripts: currServ.scripts.map((script) => script.filename),
|
scripts: currServ.scripts.map((script) => script.filename),
|
||||||
txts: currServ.textFiles.map((txt) => txt.fn),
|
txts: currServ.textFiles.map((txt) => txt.fn),
|
||||||
flags: (schema: any) => {
|
flags: (schema: unknown) => {
|
||||||
pos2 = schema.map((f: any) => {
|
if (!Array.isArray(schema)) throw new Error("flags require an array of array");
|
||||||
|
pos2 = schema.map((f: unknown) => {
|
||||||
|
if (!Array.isArray(f)) throw new Error("flags require an array of array");
|
||||||
if (f[0].length === 1) return "-" + f[0];
|
if (f[0].length === 1) return "-" + f[0];
|
||||||
return "--" + f[0];
|
return "--" + f[0];
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user