Type Error when passing code into `Scope.extend` with pipe - Effect Community