total-typescript

total-typescript/shoehorn

Work seamlessly with partial mocks in TypeScript.

TypeScript
497
10
MIT License

Shoehorn is a TypeScript utility library designed to simplify testing by allowing developers to pass partial data to functions that expect complete objects, without resorting to unsafe type assertions. It is particularly useful for working with legacy codebases or third-party libraries where refactoring types isn't feasible. The library provides three main functions—`fromPartial`, `fromAny`, and `fromExact`—to safely handle incomplete or mismatched data in tests while maintaining TypeScript's type safety.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of total-typescript/shoehorn

Account's avatar
TypeScript definitions for node
Account's avatar
Bundle your TypeScript library with no config, powered by esbuild
Account's avatar
Turborepo is a high-performance build system for JavaScript and TypeScript codebases.
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Next generation testing framework powered by Vite

Support the repos that depend on total-typescript/shoehorn

Top contributors

mattpocock's profile
mattpocock
33 contributions
andrewbranch's profile
andrewbranch
3 contributions
brandonp-ais's profile
brandonp-ais
1 contributions
syhner's profile
syhner
1 contributions
slorber's profile
slorber
1 contributions
github-actions[bot]'s profile
github-actions[bot]
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet