Andrew
Aarktype
•Created by Graff on 1/21/2025 in #questions
Recommended syntax for Higher Order Functions?
I've been running up against a similar issue where the correct return types are being erased when used in a type-factory style function.
I'm not sure if there is a better approach to this, and maybe someone can do this without the ugly
as any
cast, but this can be achieved with some level of type safety using Module
s and generics:
3 replies