Skip to content

checkReturnTypes for instances #115

@markelog

Description

@markelog

For example

/**
 * Clones current Element structure.
 *
 * @returns {Element}
 */
cloneElement() {
    let clonedChildren = new Array(this._childElements.length);
    for (let i = 0; i < clonedChildren.length; i++) {
        clonedChildren[i] = this._childElements[i].cloneElement();
    }
    return new this.constructor(clonedChildren);
}

checkReturnTypes will report violation, when it probably shouldn't

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions