Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing definition for td.object doesn't support constructors with arguments #184

Closed
caseyhoward opened this issue Jan 27, 2017 · 1 comment

Comments

@caseyhoward
Copy link
Contributor

For example, the following doesn't work:

class Blah {
  constructor(private x: number) {}
}

let blahDouble = testdouble.object(Blah);

It generates the following error:

[ts] Argument of type 'typeof Blah' is not assignable to parameter of type 'new () => Blah'.
@caseyhoward
Copy link
Contributor Author

Fixed by #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants