Defining Expected Return Value in `Match`

Is there a way in
Match
to define the expected return value?

ts-pattern for example has .returnType (https://github.com/gvergnaud/ts-pattern?tab=readme-ov-file#returntype)
Was this page helpful?