tsconfig / bases

Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment
MIT License
6.41k stars 240 forks source link

[Ember] set "target" to ESNext #249

Open NullVoxPopuli opened 10 months ago

NullVoxPopuli commented 10 months ago

I noticed in a project: I didn't have access to Array.prototype.toSpliced, which landed in TS 5.2, so this should help others with that problem.

orta commented 10 months ago

I'd be careful with this one, 'esnext' implies always being bleeding edge and that's not really the right thing to be recommending when making a base like this

NullVoxPopuli commented 10 months ago

What's an example of that backfiring?

orta commented 10 months ago

The browser/js runtime does not have function that the types claim to have and you get unexpected crashes - I assume for ember target is based on what they declare as their minimum support window