flexsearch
flexsearch copied to clipboard
typescript definitions not published with library
As there are already types, this simply needs an entry in package.json
for "types"
and to be added to "files"
Thanks for this hint. Could you make a pull request with these changes please? Thanks in advance.
bump
It's linked above #244 I created it at the same time as the issue... Sorry I missed your comment here.
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.
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
Use this: https://www.npmjs.com/package/@types/flexsearch
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.