TypeScript Inference Issue with Shortened Function - Effect Community