fix ns.prompt typechecking

Introduced some new type assertion functions, initial step in larger type safety rework.
This commit is contained in:
omuretsu
2022-10-14 11:00:29 -04:00
parent 6c84d64e67
commit ad0be471ce
4 changed files with 121 additions and 61 deletions

View File

@@ -6613,7 +6613,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>;
/**