How to have a generic type argument be itself a generic

Viewed 948

I am working with an example where I have two generic arguments to a type in typescript, but I would like the second generic type to take the first generic type. Something along these lines

type NestedMess<T, V> = (t: V<T>) => void

However, I get Type 'V' is not generic. ts(2315). Is there a way I can indicate that V will be a type that itself is generic?

0 Answers
Related