You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using elasticlunr in a typescript project. I get the following typescript compiler error when using addField:
[0] Argument of type '"url"' is not assignable to parameter of type 'never'. TS2345
The code:
let elasticLunrIndex = elasticlunr(function () {
this.addField('url');
});
I made sure all strict checking is turned off in tsconfig.json. I can workaround it for now by casting the string to never (whatever that means) like so:
let elasticLunrIndex = elasticlunr(function () {
this.addField('url' as never);
});
The text was updated successfully, but these errors were encountered:
I'm using elasticlunr in a typescript project. I get the following typescript compiler error when using addField:
The code:
I made sure all
strict
checking is turned off intsconfig.json
. I can workaround it for now by casting the string tonever
(whatever that means) like so:The text was updated successfully, but these errors were encountered: