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

Support the repos that depend on this repository

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