mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-22 15:42:05 +02:00
MISC: Improve script args validation message (#2451)
This commit is contained in:
committed by
GitHub
parent
c55577929c
commit
19064a1b12
@@ -35,7 +35,7 @@ export function assert<T>(
|
||||
}
|
||||
|
||||
/** Returns the friendlyType of v. arrays are "array" and null is "null". */
|
||||
function getFriendlyType(v: unknown): string {
|
||||
export function getFriendlyType(v: unknown): string {
|
||||
return v === null ? "null" : Array.isArray(v) ? "array" : typeof v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user