Effect CommunityEC
Effect Community2y ago
50 replies
Kristian Notari

Question about converting type to interface and type constraints

Question about interfaces. I tried converting a type of mine to an interface for readability, performance and I guess other useful pros michael stated already, but I can't pass such interface to a type constraint of Record<string, unknown> anymore, due to "it's lacking index type signature".

So this is what I have. What's missing? If I replace unknown with any it works.
image.png
Was this page helpful?