Skip to content

Renderer.createElement - possibly incorrect call signature #8466

@terrawheat

Description

@terrawheat

Current behavior
Before the release candidate the following compiled without issue:

export class Foo {
  constructor(private renderer: Renderer) {
    const tag = 'p';
    const element = /* some kind of HTMLElement */;
    let el = this.renderer.createElement(element, tag);
  }
}

Since the release candidate this now throws a compile error:

error TS2346: Supplied parameters do not match any signature of call target.

The third parameter DebugInfo I believe should be an optional parameter.

Expected/desired behavior
Be able to compile with just element and tag provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions