We're integrating lunr into our typescript project and found that @types/lunr is missing the second param for both builder.field and builder.add. There may be others, I haven't had time to go through and check:
See:
The typings in question:
/**
* Adds a field to the list of document fields that will be indexed. Every document being
* indexed should have this field. Null values for this field in indexed documents will
* not cause errors but will limit the chance of that document being retrieved by searches.
*
* All fields should be added before adding documents to the index. Adding fields after
* a document has been indexed will have no effect on already indexed documents.
*
* @param field - The name of a field to index in all documents.
*/
field(field: string): void;
Hi!
We're integrating lunr into our typescript project and found that @types/lunr is missing the second param for both
builder.field
andbuilder.add
. There may be others, I haven't had time to go through and check:See:![image](https://user-images.githubusercontent.com/10559737/49436102-20b77980-f7b0-11e8-8bfe-d7e0342a6d05.png)
The typings in question:
And the code which it refers to: https://lunrjs.com/docs/builder.js.html#line95
Is this something that can be addressed/needs a PR?
lunr version 2.3.5, @types/lunr version 2.1.6