MISC: Improve script args validation message (#2451)

This commit is contained in:
Michael Ficocelli
2026-01-18 14:34:49 -05:00
committed by GitHub
parent c55577929c
commit 19064a1b12
3 changed files with 54 additions and 20 deletions
+1 -1
View File
@@ -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;
}