I am trying to attach property on window object. Here is my code for that.
cbid:string ='someValue';
window[cbid] = (meta: any) => {
tempThis.meta = meta;
window[cbid] = undefined;
var e = document.getElementById(cbid);
e.parentNode.removeChild(e);
if (meta.errorDetails) {
return;
}
};
Compiler starts throwing the following error.
TypeScript Index Signature of object type implicitly has type any
Can someone tell me where I am doing the mistake?