Hacker News new | ask | show | jobs
by Alexendoo 2824 days ago
I would recommend avoiding adding your own global types if you can avoid it, for example TypeScript has a full type definition for Array.prototype.find [1]. You can enable it without changing the target and breaking things by adding es2015 to lib in your tsconfig compilerOptions

[1] https://github.com/Microsoft/TypeScript/blob/5fb39769ada9ff7...

1 comments

Thanks, I reckoned there was a way to get it done but never found one! Can you also enable individual features, not the whole pack?