flexsearch icon indicating copy to clipboard operation
flexsearch copied to clipboard

typescript definitions not published with library

Open ehaynes99 opened this issue 2 years ago • 7 comments

As there are already types, this simply needs an entry in package.json for "types" and to be added to "files"

ehaynes99 avatar Jul 20 '21 22:07 ehaynes99

Thanks for this hint. Could you make a pull request with these changes please? Thanks in advance.

ts-thomas avatar Jul 26 '21 10:07 ts-thomas

bump

thaotx-zigvy avatar Jul 26 '21 10:07 thaotx-zigvy

It's linked above #244 I created it at the same time as the issue... Sorry I missed your comment here.

ehaynes99 avatar Aug 03 '21 15:08 ehaynes99

Note the types don't seem to match v7. Is the API mostly finalised for v7? I could try creating up to date types when I have time.

josh18 avatar Aug 09 '21 02:08 josh18

the change done in #244 got somehow reverted and the current npm module is missing the types again

the index.d.ts is not published and typescript complains

RSWilli avatar Sep 13 '21 08:09 RSWilli

Use this: https://www.npmjs.com/package/@types/flexsearch

Losses avatar Sep 15 '21 02:09 Losses

The https://www.npmjs.com/package/@types/flexsearch package does not work with ESM at all. The author suggests using the flexsearch/dist/module/* path but the @types/flexsearch package does not define these paths. Would be nice if this library would have own types included.

jarrodek avatar May 22 '22 22:05 jarrodek