migrate-to-shoehorn

Installation
SKILL.md

Migrate to shoehorn

Why shoehorn

shoehorn (published as @total-typescript/shoehorn) lets a test hand a function partial data without the compiler complaining. It swaps casts for helpers that stay type-checked, so the test still fails when the real shape drifts.

Tests only. Keep shoehorn out of production code.

What as costs you in tests:

  • It defeats the compiler you are trying to lean on
  • You restate the target type by hand at every call site
  • Deliberately wrong fixtures need the double cast as unknown as Type

Install

npm i @total-typescript/shoehorn
Installs
2
GitHub Stars
6
First Seen
14 days ago
migrate-to-shoehorn — officialunofficial/skills