I've recently been doing more exploration in advance TS types and was going through react type declarations when I came Accross this
type RefCallback<T> = { bivarianceHack(instance: T | null): void }["bivarianceHack"];
can someone explain what ["bivarianceHack"] means and what it does? Not the string itself, but wondering why an array is declared after like type T = {}[] <-- []