mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-08 08:44:37 +08:00
#1309 let a checker-untyped receiver call a member named like a String.prototype-only method (`bold`, `italics`, ...), refusing only a string receiver at run time. TypeScript importing chalk's JavaScript source types the default export as a plain function, so `chalk.bold` is an `any` member on a typed receiver and still fenced; pi calls it in nine places. A checker-untyped member now takes the same path. The chalk 5 fixture pins root, aliased, and Chalk-instance `bold` calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>