Troubleshooting TypeScript Function with Schema Type Constraints - Effect Community