How to externalize a type-safe Match as function input?

I want to externalize a Match (tagsExhaustive) as a function input and stay type-safe.

I am struggling to write the type of matcher.

How to write the right type to the Match?

I appreciate your help.

`type OAuthProvider = "github"``
CleanShot_2023-10-11_at_12.06.452x.png
CleanShot_2023-10-11_at_12.10.562x.png
Was this page helpful?