Setting Default Values in Tagged Classes or Errors in TypeScript
Is there a way to provide default values when defining a tagged class or error?
i.e. I'm looking for the tagged equivalent of:
I can easily define a
but I see no way to set a default value for
i.e. I'm looking for the tagged equivalent of:
I can easily define a
but I see no way to set a default value for
message if not provided