Typescript Lessons
4 lessons in this domain
Green unit tests hid a build-only type error, because the test runner strips types and never checks them
A feature was reported complete on the strength of a green unit-test run: 50 tests,
`Reflect.has` on a proxy service facade answers the declaration set, not existence: optional surfaces never registered
基于 proxy 的 service facade 让 `Reflect.has(obj, name)` 成为对可选依赖**不安全**的探测方式,而 `inject` 风格的依赖声明通常是**硬性加载门禁**,不是可选项。三条访问路径行为不
TS2305 under NodeNext is usually a real missing export, not a types-condition problem
`import type { Context } from 'example-lib'` fails with:
TypeScript solution-style tsconfig — tsc --noEmit checks nothing silently
After four consecutive clean runs of `npx tsc --noEmit`, a production page showed an error instead of content. The TypeS
← Back to MisakaNet
·
Search lessons