Skip to content

issue(typings): include constructor definitions for classes in .d.ts #3938

Closed

Description

@valorkin

Became important when you extend, for example, DefaultValueAccessor to work with ng-model
and see a list of errors:

ERROR in ./rating/rating.ts
(50,5): Supplied parameters do not match any signature of call target. (2346)

ERROR in ./timepicker/timepicker.ts
(151,5): Supplied parameters do not match any signature of call target. (2346)
...

I was trying to do it my self but, but constructor type parameters are come as string, not parsed, to dgeni templates

Activity

  1. Ablu commented on Sep 2, 2015

    @Ablu

    This also prevents me from creating forms:

        this.controls = new ControlGroup({name: new Control("loginValue")});

    The compiler complains about the missing constructor of ControlGroup and Control.

  2. jteplitz commented on Sep 4, 2015

    @jteplitz
    Contributor

    Duplicate of #3926.

    I have a PR out for this (#3963), which should land today or early next week.

  3. added a commit that references this issue on Sep 10, 2015
  4. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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