I'm currently using Angular 13 and Typescript 4.5.2 in the project.
Also I'm using Syncfusion library for developing the application where I'm using datagrid component for dealing with table data.
Syncfusion data grid reference corresponding stackblitz
Where data present in the data.ts file. I'm getting the above error in data.ts file. Exactly in the 2nd line of the below code.
type cType = { CustomerID: string, ContactName: string, CustomerName: string };
export const data: Object[] = orderData.map((item: cType) => {
let name: cType = (<cType[]>customerData).filter((cItem: cType) => {
return cItem.CustomerID === item.CustomerID;
})[0];
item.CustomerName = (name || <cType>{}).ContactName;
return item;
});
Not able to get exact idea to crack this. Need help to solve