migrate-to-shoehorn

Installation
SKILL.md

迁移到 Shoehorn (Migrate to Shoehorn)

为什么用 shoehorn?

shoehorn 让你在测试中传递部分数据,同时保持 TypeScript 类型安全。它用类型安全的替代方案替换 as 断言。

shoehorn lets you pass partial data in tests while keeping TypeScript happy. It replaces as assertions with type-safe alternatives.

仅限测试代码。 永远不要在生产代码中使用 shoehorn。

Test code only. Never use shoehorn in production code.

测试中使用 as 的问题:

Problems with as in tests:

Installs
1
GitHub Stars
48
First Seen
Jul 8, 2026
migrate-to-shoehorn — ninehills/mattpocock-skills