Pattern Matching on an `Either` Type in Typescript
how can i pattern match on an
Either type? i would expect this to work but type's complain:Either );
const resultAsEither = yield* pipe(
Match.value(responseAsEither),
Match.tagsExhaustive({
Left: ({ error }) => Either.left(error),
Right: ({ result }) => Either.right(result),
}),
);