Separate lib file for the subset of es2023.array methods implemented in Node 18 and 19 #56796
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
⚙ Compilation target
es2022
⚙ Library
["es2023"]
Missing / Incorrect Definition
See this issue tsconfig/bases#217.
@tsconfig/node18
should be able to includefindLast
andfindLastIndex
while avoiding the copying methods unavailable in Node 18.Sample Code
If
tsconfig.json
contains"extends": "@tsconfig/node18"
, code usingtoReversed()
,toSorted()
, etc. shouldn't compile but it does.Documentation Link
No response
The text was updated successfully, but these errors were encountered: