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

[TypeScript] Cannot use 'new' with an expression whose type lacks a call or construct signature. #137

Closed
x1unix opened this issue Feb 20, 2017 · 3 comments

Comments

@x1unix
Copy link

x1unix commented Feb 20, 2017

I've a project based on TypeScript and fuse.js@2.6.1

I'm trying to import fuse to the project:

import * as Fuse from 'fuse.js';

let fuse = new Fuse(items, config);

At typescript compilation, I've got an error:

Cannot use 'new' with an expression whose type lacks a call or construct signature.

But Fuse constructor is present at browser.

@QuentinFchx
Copy link

Probably related to #129.

@x1unix
Copy link
Author

x1unix commented Feb 20, 2017

@QuentinFchx, as I see, this issue fixed at #4f6b9b2 but still not available at the latest release on npm :(

@krisk
Copy link
Owner

krisk commented Feb 23, 2017

Version 2.6.2 has been published 😄, which includes the above.

@krisk krisk closed this as completed Feb 23, 2017
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

3 participants