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

Created on 20 Feb 2017  路  3Comments  路  Source: krisk/Fuse

I've a project based on TypeScript and [email protected]

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.

Most helpful comment

Version 2.6.2 has been published 馃槃, which includes the above.

All 3 comments

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

Version 2.6.2 has been published 馃槃, which includes the above.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mirzazulfan picture mirzazulfan  路  5Comments

fsskeach picture fsskeach  路  3Comments

ergcode picture ergcode  路  3Comments

Olian04 picture Olian04  路  4Comments

stuartpb picture stuartpb  路  3Comments