Closed JeremyTCD closed 6 years ago
Thanks for pointing out the error in the type definition. I have submitted a PR to correct this and it should be available soon.
@JeremyTCD the PR is merged and the updated type definition is available now. Do close this issue if it's working for you now. :)
Thanks for the fix! I came across a second issue though. I think the generateStopWordFilter
function in the lunr
namespace is missing. I'm not too familiar with typescript but I think the declaration would be something like this:
function generateStopWordFilter(stopWords: string[]) : PipelineFunction;
@JeremyTCD You're correct with the missing definition. 👍 Added another PR for it. Thanks for making the definition more accurate and complete.
If you may wish to put up a PR for lunr directly on DefinitelyTyped next time too :) in case I'm not available to do so.
@seantanly Thanks again dude. Wasn't super confident in my TS skills :grinning:, but will create my own PRs for future issues. Closing this thread.
@seantanly First off, thanks for the lunr type definitions. Unfortunately, I ran into a minor issue with
tokenizer.separator
:causes the following typescript error:
Is the separator property meant to have a
const
access modifier? If so, is there a way to assign to it?