Skip to content

[TS 2] React Component/PureComponent constructor super does not accept rest params. #11472

Closed

Description

@beckend

Using:

  • TypeScript 2.0.3
  • react.d.ts 0.14.36
class Foo extends React.Component<{}, {}> {
  constructor(...args) {
    super(...args);
    ...
  }
}

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

Activity

  1. vvakame commented on Sep 28, 2016

    @vvakame
    Member

    please send a pull request. I'll review it.

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