DEV Community

Discussion on: Advanced TypeScript Exercises - Answer 4

Collapse
 
macsikora profile image
Pragmatic Maciej • Edited

Extends any[] doesn't mean it is any[] it only means it is any array, so array with any type you want. Compiler will infer correct type and it will never be any. There is no type whole here