TypeScript: Tightening Function.prototype.apply's Type Contract

A single pull request, PR #63654, proposes updating the built-in type definitions so `Function.prototype.apply` accepts any array-like object, not just real arrays, aligning the type system with actual JavaScript spec behavior.

Duration: PT1M59S

Episode overview

This episode is a short developer briefing from TypeScript.

It explains recent repository work in plain language.

  • Show: TypeScript
  • Published: 2026-07-18T13:11:42Z
  • Audio duration: PT1M59S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good day. It's July 18th, 2026, and this is your TypeScript briefing.

Today's activity centers on one change, but it's a meaningful one: closing a long-standing gap between what JavaScript actually allows and what TypeScript's built-in types enforce.

PR #63654, from contributor KAMRONBEK, addresses issue #61835 by updating the core library definitions so `Function.prototype.apply` accepts array-like objects as its second argument — think `arguments` objects, typed arrays, or DOM collections — rather than requiring a strict array. This isn't a new runtime…

Why this matters: developers passing array-like objects to `apply` have long had to fight the type checker with workarounds — casting to `any`, spreading into a real array, or using ts-ignore comments — even though the code ran fine. This change removes that friction and makes the type signature match reality, which…

The PR is flagged as a broad change, touching multiple related type declarations, and has already drawn a review comment, suggesting the design is still being discussed. Given how foundational `lib.es5.d.ts` is, changes here ripple across nearly every TypeScript project, so expect careful scrutiny before merge —…

What's…

Nearby episodes from TypeScript

  1. The Checker Gets a Constructor Fix
  2. Fixing False-Positive Rebuilds in Incremental Builds
  3. A Curious Deno Workflow Proposal
  4. Weekly Recap - Type Fidelity and Contribution Housekeeping
  5. Weekly Recap - Correctness Fixes and Repository Housekeeping
  6. Fixing "typeof this" Type Inference
  7. A Small Diagnostic Fix and a Vague Submission
  8. One Real Fix, Six Suspicious Pull Requests