Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates test files from as type assertions to @total-typescript/shoehorn helpers like fromPartial, fromAny and fromExact.
32% 82%+50 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 7 of 22 without it.
Which exact npm package installation command should be executed to add the Total TypeScript casting helper library to our project dependencies?
Executes npm i @total-typescript/shoehorn.
3 of 3 safety checks passed
--------- | -------------------------------------------------- |
| fromPartial() | Pass partial data that still type-checks |
| fromAny() | Pass intentionally wrong data (keeps autocomplete) |
| fromExact() | Force full object (swap with fromPartial later) |
Gather requirements - ask user:
as assertions causing problems?Install and migrate:
npm i @total-typescript/shoehornas assertions: grep -r " as [A-Z]" --include="*.test.ts" --include="*.spec.ts"as Type with fromPartial()as unknown as Type with fromAny()@total-typescript/shoehornPublished skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.