Effect CommunityEC
Effect Community2y ago
6 replies
cecco_

Workaround for Constructor Argument Inference with Optional Class Fields

I noticed that if all fields in a class are optional, the constructor argument is inferred to be {} and not what I would expect (e.g. { abc?: number, xyz?: number }). Is there a workaround this?
Was this page helpful?