Either using the code from before the ts-refactors or writing something that will match both our runtime targets and still provides type/ide support by using type overloads