Improving Type Definition in TypeScript for Struct Composition - Effect Community