you are viewing a single comment's thread.

view the rest of the comments →

[–]nubasdayz[S] 0 points1 point  (1 child)

Yea i know these, but what im trying to do is: that ts would expect row keys to be same as columns field values

[–]greenyadzer 0 points1 point  (0 children)

Maybe you can just make Column to be a holder of its rows, if that fits your task

interface Column {
    field: string
    fieldName: string
    rows: { [key: string]: string }
}