Type Guard for Effect Returning Function
hi, is it possible to type guard this? as it returns the effect and not boolean
function isErrorResponse(response: unknown) {
return Effect.gen(function* () {
const result = Schema.decodeUnknownEither(ErrorResponseSchema)(response)
if (Either.isRight(result)) {
return true
}
return false
})
}