Relative Content

Tag Archive for typescripttypescript-genericstypescript-conditional-types

Can I simplify AofO with Type Mapping?

I have a type of AccountQuery with specified options {SubAccount: boolean; Classification: "Asset" | "Liability";etc....
A relevant function can accept either an object (AccountQuery) or (|) array (AccountArrayOptions[]) as a parameter;