node_modules/typesense/src/Typesense/ApiCall.ts
607 - error TS2322: Type 'null' is not assignable to type 'ResponseType'.
60 responseType = null
~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
957 - error TS2322: Type 'null' is not assignable to type 'ResponseType'.
95 responseType = null
~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
20786 - error TS2571: Object is of type 'unknown'.
207 `Request #${requestNumber}: Request to Node ${node.index} failed due to "${error.code} ${error.message}${
~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
207100 - error TS2571: Object is of type 'unknown'.
207 `Request #${requestNumber}: Request to Node ${node.index} failed due to "${error.code} ${error.message}${
~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
20813 - error TS2571: Object is of type 'unknown'.
208 error.response == null ? '' : ' - ' + JSON.stringify(error.response?.data)
~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
20866 - error TS2571: Object is of type 'unknown'.
208 error.response == null ? '' : ' - ' + JSON.stringify(error.response?.data)
~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
26396 - error TS2454: Variable 'candidateNode' is used before being assigned.
263
Request #${requestNumber}: No healthy nodes were found. Returning the next node, Node ${candidateNode.index}
~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
26512 - error TS2454: Variable 'candidateNode' is used before being assigned.
265 return candidateNode
~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
26825 - error TS7006: Parameter 'node' implicitly has an 'any' type.
268 nodeDueForHealthcheck(node, requestNumber: number = 0): boolean {
~~
node_modules/typesense/src/Typesense/ApiCall.ts
29022 - error TS7006: Parameter 'node' implicitly has an 'any' type.
290 setNodeHealthcheck(node, isHealthy): void {
~~
node_modules/typesense/src/Typesense/ApiCall.ts
29028 - error TS7006: Parameter 'isHealthy' implicitly has an 'any' type.
290 setNodeHealthcheck(node, isHealthy): void {
~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
29528 - error TS7006: Parameter 'node' implicitly has an 'any' type.
295 uriFor(endpoint: string, node): string {
~~
node_modules/typesense/src/Typesense/ApiCall.ts
3057 - error TS7053: Element implicitly has an 'any' type because expression of type '"X-TYPESENSE-API-KEY"' can't be used to index type '{}'.
Property 'X-TYPESENSE-API-KEY' does not exist on type '{}'.
305 defaultHeaders[APIKEYHEADERNAME] = this.apiKey
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
3075 - error TS7053: Element implicitly has an 'any' type because expression of type '"Content-Type"' can't be used to index type '{}'.
Property 'Content-Type' does not exist on type '{}'.
307 defaultHeaders['Content-Type'] = 'application/json'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/ApiCall.ts
31115 - error TS7006: Parameter 'seconds' implicitly has an 'any' type.
311 async timer(seconds): Promise<void> {
~~~~~~~
node_modules/typesense/src/Typesense/Configuration.ts
725 - error TS2322: Type 'NodeConfiguration | null' is not assignable to type 'NodeConfiguration'.
Type 'null' is not assignable to type 'NodeConfiguration'.
72 this.nearestNode = options.nearestNode || null
~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/Configuration.ts
825 - error TS2322: Type 'boolean | undefined' is not assignable to type 'boolean'.
Type 'undefined' is not assignable to type 'boolean'.
82 this.sendApiKeyAsQueryParam = options.sendApiKeyAsQueryParam // We will set a default for this in Client and SearchClient
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/Configuration.ts
915 - error TS2322: Type 'Record<string, string> | undefined' is not assignable to type 'Record<string, string>'.
Type 'undefined' is not assignable to type 'Record<string, string>'.
91 this.additionalHeaders = options.additionalHeaders
~~~~~~~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/Configuration.ts
16624 - error TS7006: Parameter 'array' implicitly has an 'any' type.
166 private shuffleArray(array) {
~~~~~
node_modules/typesense/src/Typesense/Documents.ts
20135 - error TS2359: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.
201 if (RangeError instanceof error && error?.includes('Too many properties to enumerate')) {
~~~~~
node_modules/typesense/src/Typesense/Documents.ts
20144 - error TS2571: Object is of type 'unknown'.
201 if (RangeError instanceof error && error?.includes('Too many properties to enumerate')) {
~~~~~
node_modules/typesense/src/Typesense/Documents.ts
21025 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string | undefined'.
210 throw new Error(error)
~~~~~
node_modules/typesense/src/Typesense/Errors/ImportError.ts
615 - error TS7006: Parameter 'message' implicitly has an 'any' type.
6 constructor(message, importResults) {
~~~~~~~
node_modules/typesense/src/Typesense/Errors/ImportError.ts
624 - error TS7006: Parameter 'importResults' implicitly has an 'any' type.
6 constructor(message, importResults) {
~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/RequestWithCache.ts
227 - error TS2322: Type 'unknown' is not assignable to type 'T'.
'unknown' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'unknown'.
22 return requestFunction.call(requestContext, ...requestFunctionArguments)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/typesense/src/Typesense/SearchOnlyDocuments.ts
227 - error TS2322: Type 'null' is not assignable to type 'AbortSignal'.
22 abortSignal = null
~~~~~~~~~~~
node_modules/typesense/src/Typesense/SearchOnlyDocuments.ts
277 - error TS7053: Element implicitly has an 'any' type because expression of type '"use_cache"' can't be used to index type '{}'.
Property 'use_cache' does not exist on type '{}'.
27 additionalQueryParams['use_cache'] = true
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 27 errors in 6 files.
Errors Files
15 node_modules/typesense/src/Typesense/ApiCall.ts:60
4 node_modules/typesense/src/Typesense/Configuration.ts:72
3 node_modules/typesense/src/Typesense/Documents.ts:201
2 node_modules/typesense/src/Typesense/Errors/ImportError.ts:6
1 node_modules/typesense/src/Typesense/RequestWithCache.ts:22
2 node_modules/typesense/src/Typesense/SearchOnlyDocuments.ts:22