ts-simple-type
ts-simple-type copied to clipboard
Include type predicate information for functions
And compare them for assignability. (Notice the commented out function test case.)
Hope this looks OK! I'm new to this.
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!