Create array type containing values of all object properties
How do I create a type that must contain all object property values based on object definition? Having an object type defintion like this: type ExampleObject = { property1: "abc", property2: "xyz", property3: "123" } How do I define type that is satisifed only by these values (with items in any order): const exeampleArray = ["abc", "xyz", "123"] const exeampleArray2 = ["xyz", "abc", "123"] ... etc My exact scenario is a little more complicated but it might be useful to know: This is a definition of one TableColumn export type TableColumn< RowEntity extends object, ColumnKey extends string, Val
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.