xml-typescript icon indicating copy to clipboard operation
xml-typescript copied to clipboard

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

Open prasannabalajee opened this issue 5 years ago • 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];

prasannabalajee avatar Mar 04 '20 06:03 prasannabalajee