gcanti / newtype-ts

Implementation of newtypes in TypeScript
https://gcanti.github.io/newtype-ts/
MIT License
582 stars 14 forks source link

iso returns any with last typescript #25

Closed Spaubleit closed 3 years ago

Spaubleit commented 3 years ago

Hello. Just tried this library first time. I got any after iso function call with typescript 4.2.3.

Here is codesandbox with example: https://codesandbox.io/s/any-iso-return-type-k09r6?file=/src/index.ts

gcanti commented 3 years ago

@Spaubleit I can't repro, did you add fp-ts, monocle-ts as dependencies? The link you provided says:

DependencyNotFoundError
Could not find dependency: 'fp-ts' relative to '/node_modules/newtype-ts/es6/index.js'
Spaubleit commented 3 years ago

Sorry. I feel stupid now :)