extracting redux-like actions from type.enumerated discriminated union
Trying unsuccessfully to convert some redux/reducer-like "action" object types to arktype:
Below is how I did the conversion. The
If I define the action union type in vanilla TS (from the ark inferred types) the extract works as expected:
Am I holding it wrong?
Below is how I did the conversion. The
Extract on the type.enumerated results in a never and I don't follow why.If I define the action union type in vanilla TS (from the ark inferred types) the extract works as expected:
Am I holding it wrong?