Skip to content

Improve return type of Node.cloneNode #192

@Stadly

Description

@Stadly

Would it be possible to improve the return type of Node.cloneNode?

For example:

let svg: SVGElement;
const clone = svg.cloneNode(true);

I would expect the type of clone to be SVGElement, but it is in fact Node.

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