Skip to content

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

Open
@prasannabalajee

Description

@prasannabalajee

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions