i'm guessing this is either really simple or really difficult to do
Q: how would I type a generic class/constructor that is unknown/any on instantiation, but narrowed after an operation on that instance? ie how does this work?
https://www.typescriptlang.org/play/#code/MYGwhgzhAEDKAuZgGsA8AVAfNA3gKGkOgAcBXCACwAoA3MEUgUwC5p0BKXaAo3gej7QAdCJ6EAvnkl4QjeNAAe0ALzQA2gF0A3NAGLWYAHYBPTXgVCylKgEZ2O3YIUGTZhQ978nrQ6QC2AEaMAE5mMnLQxirQhowA7nCIKFT2XpGsCEhopIbIhgD2cYaYeMaW5NR2Hp41esYZSdm5BUUlxtU1nZ51DVmoOXmFxUA …
#TypeScriptpic.twitter.com/36By9tuH1B