TypeScript error when adding `declaration: true` - Effect Community