Relative Content

Tag Archive for typescripttypechecking

How to declare a recoursive array type in typescript

I want to create a generic method in typescript that takes an instance of a type/class/interface and an array of strings and navigates in a nested manner in the array. More precisely, the method can be something like: