I have an open source library which I\'m refactoring and have hit an intractable Typescript problem. I consider myself a fairly advanced TS user but this problem just seems