What I want is simple: I want to define a tuple type whose second argument is T[] if the first argument is determined to be T.
I can do this.
type TandTArray<T> = [T, T[]]
But i want it to be determined by the first argument automatically.
I tried this But dosen't work
type TandTArray = <T>[T, T[]]
