I have this error when I try to assign an empty value to an array whose type was already declared. Here is the code that causes the error,
export interface EmiCalculator {
emi: number;
months: number;
position: number;
principal: number;
roi: number;
}
Below is the line that produces the error,
emiResults: EmiCalculator = [];
How can I assign an empty array to a property whose type was already declared.