Closed piotrwitek closed 5 years ago
@loadbalance-sudachi-kun funded this issue with $256. Visit this issue on Issuehunt
@piotrwitek has started working. Visit this issue on Issuehunt
@piotrwitek has submitted a pull request. See it on IssueHunt
@piotrwitek has rewarded $179.20 to @piotrwitek. See it on IssueHunt
Historically typesafe-actions was created well before there was any solutions in the wild that would allow to unit-test correctness of resulting type annotations. So I had to improvise and cook my own solution to do that, unfortunately this increased a cost of maintenance and adding new features slowing down development and increasing effort.
~I want to fix that now and leverage a really nice solution created by the TypeScript team: https://github.com/Microsoft/dtslint~
UPDATE: After initial evaluation and implementation of
dtslint
it proved it's not a good solution for a library because it was designed for ambient types testing for definitely-typed project. After that I spend some time investigating other options and it turned outnpm-ramda
project uses another librarydts-jest
which is exactly what I was looking for.This task is updated to use dts-jest for type testing.
This will allow to add new features with less effort and also increase the type correctness unit-test coverage.
Planned work: