Merge pull request #4249 from Snarling/typeAssertion

NETSCRIPT: Fix ns.prompt typechecking
This commit is contained in:
hydroflame
2022-10-19 11:44:59 -04:00
committed by GitHub
4 changed files with 119 additions and 53 deletions

View File

@@ -6621,7 +6621,7 @@ export interface NS {
*/
prompt(
txt: string,
options?: { type?: "boolean" | "text" | "select" | undefined; choices?: string[] },
options?: { type?: "boolean" | "text" | "select"; choices?: string[] },
): Promise<boolean | string>;
/**