Closed TheGuardianWolf closed 3 years ago
Can you add some tests?
Sure, I will do that
I've put a few tests for the optional function check
ow((() => {}) as any as ((() => void) | undefined), ow.optional.function);
This case originally triggered a TS error, but doesn't on my branch, do you have any additional tests in mind?
Finally took care of it
proposed changes to fix #147
IssueHunt Summary
### Referenced issues This pull request has been submitted to: - [#147: TypeScript optional function argument throws error TS2345 with `ow.optional.function`](https://issuehunt.io/repos/105227249/issues/147) ---