Pass column ID as a type

I want to have a defaultSortBy prop that let's me pass in a column ID but I can't get it to work properly. I tried this Extract<ColumnDef<MyType, any>[], string>; but it just returns
undefined
Was this page helpful?