Closed henrikra closed 6 years ago
Hmm I guess it is because of this line: https://github.com/yayoc/optional-chain/blob/master/src/index.ts#L10 Since conditional types came to TS in 2.8 :/
Yes, This library requires TS 2.8+ to use conditional types.
Maybe you should add it to README?
I noted the requirement on README, Thanks.
Very nice! I am able to test this in couple weeks since then I can update to TS 2.8. Have you used this library in production yet or just hobby projects?
When running following code with TS 2.7.2
I will get error
Property 'get' does not exist on type 'Option<string>'
What is wrong? With TS 2.9.2 I will not get error. Problem is that I am not able to upgrade TS yet because of other problems