🧨
Size: a a a
🧨
MT
🧨
🧨
MT
MT
🧨
🧨
MT
🧨
es
E
ЕС
interface TableRow {
id : number,
fam : string,
im : string,
ot : string
}
const columns = useMemo(() => [
{
Header: '#',
accessor: 'id'
},
{
Header: 'Фамилия',
accessor: 'fam',
},
{
Header: 'Имя',
accessor: 'im',
},
{
Header: 'Отчество',
accessor: 'ot',
},
],[])
const table = useTable({data,columns})
Type '{ Header: string; accessor: string; }[]' is not assignable to type 'Column<TableRow>[]'.
Type '{ Header: string; accessor: string; }' is not assignable to type 'Column<TableRow>'.
Type '{ Header: string; accessor: string; }' is not assignable to type 'ColumnInterface<TableRow> & { accessor: "ot"; } & ColumnInterfaceBasedOnValue<TableRow, string>'.
Type '{ Header: string; accessor: string; }' is not assignable to type '{ accessor: "ot"; }'.
Types of property 'accessor' are incompatible.
Type 'string' is not assignable to type '"ot"'. TS2322
ЕС
{
Header: 'Заголовок',
id:'Колонка'
}
..
es
..
Н
es