ts-simple-type icon indicating copy to clipboard operation
ts-simple-type copied to clipboard

Include type predicate information for functions

Open trevordixon opened this issue 3 years ago • 1 comments

And compare them for assignability. (Notice the commented out function test case.)

Hope this looks OK! I'm new to this.

trevordixon avatar Jun 30 '22 13:06 trevordixon

Oh, I just noticed it no longer builds (even though tests pass). getTypePredicateOfSignature wasn't exposed until TypeScript 4.4. Bumping TypeScript introduces new errors which I fixed, until I ran into an error in @wessberg/rollup-plugin-ts. Bumping that version doesn't resolve the error, so I'm a little stuck. Advice welcome!

trevordixon avatar Jun 30 '22 17:06 trevordixon