Effect CommunityEC
Effect Community7mo ago
9 replies
deeplaysit

Error with Struct.evolve and `dual` using two parameters of the same generic type

When I use Struct.evolve with dual that takes two params of the same generic type I get this error: 'T[K]' could be instantiated with an arbitrary type which could be unrelated to 'K extends "createdAt" | "revisionId" | "s...

play example here: https://effect.website/play#7238b3b62e97
image.png
Was this page helpful?