Seeking TypeScript Advice: Converting Instance Types to Class Types in DI Provider
Hello everybody, i'm currently building a DI provider which automatically creates layers and also instantiates through optimistic factories with DI on the factory level and i'm facing a very specific TS problem i never faced before. Maybe someone has pointers in the right direction.
Currently i have a typed map with a keys method,which correctly infers as a tuple of the original keys used (in this case tag classes), so it is inferred as [Hello, Store]. However, it seems that Effect expects [typeof Hello, typeof Store], when using Effect.all, which are the class types instead of the instance types. Is there any chance of converting back to typeof ... on the type level, or should i consider a different approach?
Currently i have a typed map with a keys method,which correctly infers as a tuple of the original keys used (in this case tag classes), so it is inferred as [Hello, Store]. However, it seems that Effect expects [typeof Hello, typeof Store], when using Effect.all, which are the class types instead of the instance types. Is there any chance of converting back to typeof ... on the type level, or should i consider a different approach?
