If you are having a tsconfig using strictNullChecks to true, the library will fail to build.
Error: node_modules/js-solr-highlighter/index.ts:106:11 - error TS2322: Type 'RegExpExecArray | null' is not assignable to type 'RegExpExecArray'. Type 'null' is not assignable to type 'RegExpExecArray'.
Can you please adapt the code and change the line 96 to let res: RegExpExecArray | null?
Hello,
If you are having a tsconfig using
strictNullChecks
to true, the library will fail to build.Error: node_modules/js-solr-highlighter/index.ts:106:11 - error TS2322: Type 'RegExpExecArray | null' is not assignable to type 'RegExpExecArray'. Type 'null' is not assignable to type 'RegExpExecArray'.
Can you please adapt the code and change the line 96 to
let res: RegExpExecArray | null
?Thank you!