Take back the surface the compiler cannot guard
Mirror / push (push) Has been cancelled
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 29s
Test / test (22) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 31s
Mirror / push (push) Has been cancelled
Test / lint (pull_request) Successful in 21s
Test / test (18) (pull_request) Successful in 29s
Test / test (20) (pull_request) Successful in 29s
Test / test (22) (pull_request) Successful in 31s
Test / test (24) (pull_request) Successful in 29s
Test / test (26) (pull_request) Successful in 31s
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ export function paramNumber(value: ParamValue | undefined, fallback: number): nu
|
||||
}
|
||||
|
||||
/** Spells a refused value for the caller who wrote it; JSON spells NaN and the infinities `null`. */
|
||||
export function valueText(value: unknown): string {
|
||||
export function valueText(value: ParamValue): string {
|
||||
return typeof value === 'number' ? String(value) : JSON.stringify(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user