Adding constrain to a Data Class in Effect Typescript - Effect Community