Closed
Description
lib Update Request
Configuration Check
My compilation target is whatever and my lib is the default
.
Missing / Incorrect Definition
Array.isArray()
Sample Code
function parseUnknown(value: unknown): Whatever {
if (Array.isArray(value) {
// value is suddenly `any[]` even though I've only confirmed that it's an array
}
}
I might be missing other usecases, but seems like Array.isArray typing should be smarter than just is any[]