A collection of global ambient type augmentations that close long-standing gaps in TypeScript's standard library. It patches `Array.isArray` narrowing for readonly arrays, changes `JSON.parse` and `fetch` `Body.json()` to return `unknown` instead of `any`, and tightens callback inference for `Array.prototype.filter`, `Array.prototype.map`, and `Set`. Import once at your entry point and the stricter types apply project-wide with zero runtime cost.
Augment `Array.isArray` to narrow to `unknown[]`.
Augment `Body.json()` to return `Promise<unknown>` instead of `Promise<any>`.
Augment `Array.filter` return type from `any[]` to the narrowed type.
Augment `JSON.parse` to return `unknown` instead of `any`.
Augment `Array.map` return type to `U[]` (instead of `any[]`).
Augment `Set` constructor and `forEach` with better types.