Hello, i need help for this code :
function sortByColumnKey(column: IdentifiantColumn) {
column.order = !column.order;
computedIdentifiantManager.value.identifiants.sort(
(a: Identifiant, b: Identifiant) => {
const columnKey: keyof Identifiant = column.code as keyof Identifiant;
const aValue = a[columnKey].toString();
const bValue = b[columnKey].toString();
return column.order
? aValue.localeCompare(bValue)
: bValue.localeCompare(aValue);
}
);
}
On the build it always explode with this message twice :
No index signature with a parameter of type 'string' was found on type 'Identifiant'.```
I typed everything and i cannot understand how the f** it throw this error of compilation...
I know it come from the A and B value key, but why ?
i tried all solution of casting to any everything it never change