RobinBuschmann/xml-typescript

error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.

prasannabalajee opened this issue · 0 comments

Getting the following 2 errors.

node_modules/xml-decorators/lib/models/XMLChild.ts:75:17 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
No index signature with a parameter of type 'string' was found on type '{}'.

75 nsSchema[ns(this.options.nestedNamespace, key)] = schema[key];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/xml-decorators/lib/models/XMLChild.ts:176:9 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
No index signature with a parameter of type 'string' was found on type '{}'.

176 attributes[attributesArr[0]] = attributesArr[1];