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
Import algoliasearch named import in index.ts and use it in any way
💥 Run tsc and see many errors
Client
All
Version
5.9.1
Relevant log output
pnpm tsc
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-abtesting/dist/node.d.ts:2:10 - error TS2305: Module '"@algolia/client-common"' has no exported member 'CreateClientOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-abtesting/dist/node.d.ts:2:31 - error TS2305: Module '"@algolia/client-common"' has no exported member 'RequestOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-abtesting/dist/node.d.ts:2:47 - error TS2305: Module '"@algolia/client-common"' has no exported member 'ClientOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-abtesting/dist/node.d.ts:448:41 - error TS2694: Namespace '"/Users/k/p/preflight/node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common"' has no exported member 'Transporter'.
448 transporter: _algolia_client_common.Transporter;~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-analytics/dist/node.d.ts:2:10 - error TS2305: Module '"@algolia/client-common"' has no exported member 'CreateClientOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-analytics/dist/node.d.ts:2:31 - error TS2305: Module '"@algolia/client-common"' has no exported member 'RequestOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-analytics/dist/node.d.ts:2:47 - error TS2305: Module '"@algolia/client-common"' has no exported member 'ClientOptions'.
2 import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-analytics/dist/node.d.ts:1375:41 - error TS2694: Namespace '"/Users/k/p/preflight/node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common"' has no exported member 'Transporter'.
1375 transporter: _algolia_client_common.Transporter;~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:2:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
2 functioncreateBrowserLocalStorageCache(options) {
~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:2:41 - error TS7006: Parameter 'options' implicitly has an 'any' type.
2 functioncreateBrowserLocalStorageCache(options) {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:2:50 - error TS1183: An implementation cannot be declared in ambient contexts.
2 functioncreateBrowserLocalStorageCache(options) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:3:7 - error TS7005: Variable 'storage' implicitly has an 'any' type.
3 let storage;~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:4:24 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
4 const namespaceKey = `algolia-client-js-${options.key}`;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:5:25 - error TS1183: An implementation cannot be declared in ambient contexts.
5 functiongetStorage() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:7:7 - error TS1036: Statements are not allowed in ambient contexts.
7 storage = options.localStorage || window.localStorage;~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:11:27 - error TS1183: An implementation cannot be declared in ambient contexts.
11 functiongetNamespace() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:14:25 - error TS7006: Parameter 'namespace' implicitly has an 'any' type.
14 functionsetNamespace(namespace) {
~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:14:36 - error TS1183: An implementation cannot be declared in ambient contexts.
14 functionsetNamespace(namespace) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:17:39 - error TS1183: An implementation cannot be declared in ambient contexts.
17 functionremoveOutdatedCacheItems() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:18:24 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
18 const timeToLive = options.timeToLive ? options.timeToLive * 1e3 : null;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:19:23 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
19 const namespace = getNamespace();
~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:20:60 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
20 const filteredNamespaceWithoutOldFormattedCacheItems = Object.fromEntries(
~~~~~~~~~~~~~~~~~~~
21 Object.entries(namespace).filter(([, cacheItem]) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... 23 }) ~~~~~~~~24 ); ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:21:59 - error TS1183: An implementation cannot be declared in ambient contexts.21 Object.entries(namespace).filter(([, cacheItem]) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:22:16 - error TS18046: 'cacheItem' is of type 'unknown'.22 return cacheItem.timestamp !== void 0; ~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:27:7 - error TS1036: Statements are not allowed in ambient contexts.27 return; ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:29:50 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.29 const filteredNamespaceWithoutExpiredItems = Object.fromEntries( ~~~~~~~~~~~~~~~~~~~30 Object.entries(filteredNamespaceWithoutOldFormattedCacheItems).filter(([, cacheItem]) => { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... 34 }) ~~~~~~~~35 ); ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:30:96 - error TS1183: An implementation cannot be declared in ambient contexts.30 Object.entries(filteredNamespaceWithoutOldFormattedCacheItems).filter(([, cacheItem]) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:31:34 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.31 const currentTimestamp = (/* @__PURE__ */ new Date()).getTime();~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:32:27 - error TS18046: 'cacheItem' is of type'unknown'.
32 const isExpired = cacheItem.timestamp + timeToLive < currentTimestamp;~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:32:27 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
32 const isExpired = cacheItem.timestamp + timeToLive < currentTimestamp;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:39:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.
39 get(key, defaultValue, events = {
~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:39:14 - error TS7006: Parameter 'defaultValue' implicitly has an 'any' type.
39 get(key, defaultValue, events = {
~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:41:8 - error TS1183: An implementation cannot be declared in ambient contexts.
41 }) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:42:43 - error TS1183: An implementation cannot be declared in ambient contexts.
42 returnPromise.resolve().then(() => {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:45:26 - error TS1183: An implementation cannot be declared in ambient contexts.
45 }).then((value) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:47:36 - error TS1183: An implementation cannot be declared in ambient contexts.47 }).then(([value, exists]) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:48:58 - error TS2554: Expected 0 arguments, but got 1.48 return Promise.all([value, exists || events.miss(value)]); ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:51:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.51 set(key, value) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:51:14 - error TS7006: Parameter 'value' implicitly has an 'any' type.51 set(key, value) { ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:51:21 - error TS1183: An implementation cannot be declared in ambient contexts.51 set(key, value) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:52:43 - error TS1183: An implementation cannot be declared in ambient contexts.52 return Promise.resolve().then(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:53:27 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.53 const namespace = getNamespace(); ~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:62:12 - error TS7006: Parameter 'key' implicitly has an 'any' type.62 delete(key) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:62:17 - error TS1183: An implementation cannot be declared in ambient contexts.62 delete(key) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:63:43 - error TS1183: An implementation cannot be declared in ambient contexts.63 return Promise.resolve().then(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:64:27 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.64 const namespace = getNamespace(); ~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:69:13 - error TS1183: An implementation cannot be declared in ambient contexts.69 clear() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:70:43 - error TS1183: An implementation cannot be declared in ambient contexts.70 return Promise.resolve().then(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:78:28 - error TS1183: An implementation cannot be declared in ambient contexts.78 function createNullCache() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:80:9 - error TS7006: Parameter '_key' implicitly has an 'any' type.80 get(_key, defaultValue, events = { ~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:80:15 - error TS7006: Parameter 'defaultValue' implicitly has an 'any' type.80 get(_key, defaultValue, events = { ~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:82:8 - error TS1183: An implementation cannot be declared in ambient contexts.82 }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:83:21 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.83 const value = defaultValue(); ~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:84:26 - error TS7006: Parameter 'result' implicitly has an 'any' type.84 return value.then((result) => Promise.all([result, events.miss(result)])).then(([result]) => result); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:84:70 - error TS2554: Expected 0 arguments, but got 1.84 return value.then((result) => Promise.all([result, events.miss(result)])).then(([result]) => result); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:84:88 - error TS7031: Binding element 'result' implicitly has an 'any' type.84 return value.then((result) => Promise.all([result, events.miss(result)])).then(([result]) => result); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:86:9 - error TS7006: Parameter '_key' implicitly has an 'any' type.86 set(_key, value) { ~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:86:15 - error TS7006: Parameter 'value' implicitly has an 'any' type.86 set(_key, value) { ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:86:22 - error TS1183: An implementation cannot be declared in ambient contexts.86 set(_key, value) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:89:12 - error TS7006: Parameter '_key' implicitly has an 'any' type.89 delete(_key) { ~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:89:18 - error TS1183: An implementation cannot be declared in ambient contexts.89 delete(_key) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:92:13 - error TS1183: An implementation cannot be declared in ambient contexts.92 clear() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:99:34 - error TS7006: Parameter 'options' implicitly has an 'any' type.99 function createFallbackableCache(options) { ~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:99:43 - error TS1183: An implementation cannot be declared in ambient contexts.99 function createFallbackableCache(options) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:100:18 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.100 const caches = [...options.caches]; ~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:101:19 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.101 const current = caches.shift(); ~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:103:5 - error TS1036: Statements are not allowed in ambient contexts.103 return createNullCache(); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:106:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.106 get(key, defaultValue, events = { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:106:14 - error TS7006: Parameter 'defaultValue' implicitly has an 'any' type.106 get(key, defaultValue, events = { ~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:108:8 - error TS1183: An implementation cannot be declared in ambient contexts.108 }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:109:65 - error TS1183: An implementation cannot be declared in ambient contexts.109 return current.get(key, defaultValue, events).catch(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:113:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.113 set(key, value) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:113:14 - error TS7006: Parameter 'value' implicitly has an 'any' type.113 set(key, value) { ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:113:21 - error TS1183: An implementation cannot be declared in ambient contexts.113 set(key, value) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:114:50 - error TS1183: An implementation cannot be declared in ambient contexts.114 return current.set(key, value).catch(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:118:12 - error TS7006: Parameter 'key' implicitly has an 'any' type.118 delete(key) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:118:17 - error TS1183: An implementation cannot be declared in ambient contexts.118 delete(key) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:119:46 - error TS1183: An implementation cannot be declared in ambient contexts.119 return current.delete(key).catch(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:123:13 - error TS1183: An implementation cannot be declared in ambient contexts.123 clear() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:124:42 - error TS1183: An implementation cannot be declared in ambient contexts.124 return current.clear().catch(() => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:132:62 - error TS1183: An implementation cannot be declared in ambient contexts.132 function createMemoryCache(options = { serializable: true }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:133:15 - error TS1039: Initializers are not allowed in ambient contexts.133 let cache = {}; ~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:135:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.135 get(key, defaultValue, events = { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:135:14 - error TS7006: Parameter 'defaultValue' implicitly has an 'any' type.135 get(key, defaultValue, events = { ~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:137:8 - error TS1183: An implementation cannot be declared in ambient contexts.137 }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:138:27 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.138 const keyAsString = JSON.stringify(key); ~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:140:9 - error TS1036: Statements are not allowed in ambient contexts.140 return Promise.resolve(options.serializable ? JSON.parse(cache[keyAsString]) : cache[keyAsString]); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:140:66 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. No index signature with a parameter of type 'string' was found on type '{}'.140 return Promise.resolve(options.serializable ? JSON.parse(cache[keyAsString]) : cache[keyAsString]); ~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:140:88 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. No index signature with a parameter of type 'string' was found on type '{}'.140 return Promise.resolve(options.serializable ? JSON.parse(cache[keyAsString]) : cache[keyAsString]); ~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:142:23 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.142 const promise = defaultValue(); ~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:143:28 - error TS7006: Parameter 'value' implicitly has an 'any' type.143 return promise.then((value) => events.miss(value)).then(() => promise); ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:143:50 - error TS2554: Expected 0 arguments, but got 1.143 return promise.then((value) => events.miss(value)).then(() => promise); ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:145:9 - error TS7006: Parameter 'key' implicitly has an 'any' type.145 set(key, value) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:145:14 - error TS7006: Parameter 'value' implicitly has an 'any' type.145 set(key, value) { ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:145:21 - error TS1183: An implementation cannot be declared in ambient contexts.145 set(key, value) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:146:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. No index signature with a parameter of type 'string' was found on type '{}'.146 cache[JSON.stringify(key)] = options.serializable ? JSON.stringify(value) : value; ~~~~~~~~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:149:12 - error TS7006: Parameter 'key' implicitly has an 'any' type.149 delete(key) { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:149:17 - error TS1183: An implementation cannot be declared in ambient contexts.149 delete(key) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:150:14 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. No index signature with a parameter of type 'string' was found on type '{}'.150 delete cache[JSON.stringify(key)]; ~~~~~~~~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:153:13 - error TS1183: An implementation cannot be declared in ambient contexts.153 clear() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:161:39 - error TS1039: Initializers are not allowed in ambient contexts.161 var DEFAULT_CONNECT_TIMEOUT_BROWSER = 1e3; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:162:36 - error TS1039: Initializers are not allowed in ambient contexts.162 var DEFAULT_READ_TIMEOUT_BROWSER = 2e3; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:163:37 - error TS1039: Initializers are not allowed in ambient contexts.163 var DEFAULT_WRITE_TIMEOUT_BROWSER = 3e4; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:164:36 - error TS1039: Initializers are not allowed in ambient contexts.164 var DEFAULT_CONNECT_TIMEOUT_NODE = 2e3; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:165:33 - error TS1039: Initializers are not allowed in ambient contexts.165 var DEFAULT_READ_TIMEOUT_NODE = 5e3; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:166:34 - error TS1039: Initializers are not allowed in ambient contexts.166 var DEFAULT_WRITE_TIMEOUT_NODE = 3e4; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:169:29 - error TS7006: Parameter 'version' implicitly has an 'any' type.169 function createAlgoliaAgent(version) { ~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:169:38 - error TS1183: An implementation cannot be declared in ambient contexts.169 function createAlgoliaAgent(version) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:170:24 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.170 const algoliaAgent = { ~171 value: `Algolia for JavaScript (${version})`, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... 178 } ~~~~~179 }; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:172:9 - error TS7006: Parameter 'options' implicitly has an 'any' type.172 add(options) { ~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:172:18 - error TS1183: An implementation cannot be declared in ambient contexts.172 add(options) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:173:33 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.173 const addedAlgoliaAgent = `; ${options.segment}${options.version !== void 0 ? ` (${options.version})` :""}`; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:175:9 - error TS1036: Statements are not allowed in ambient contexts.175 algoliaAgent.value = `${algoliaAgent.value}${addedAlgoliaAgent}`; ~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:184:21 - error TS7006: Parameter 'appId' implicitly has an 'any' type.184 function createAuth(appId, apiKey, authMode = "WithinHeaders") { ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:184:28 - error TS7006: Parameter 'apiKey' implicitly has an 'any' type.184 function createAuth(appId, apiKey, authMode = "WithinHeaders") { ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:184:64 - error TS1183: An implementation cannot be declared in ambient contexts.184 function createAuth(appId, apiKey, authMode = "WithinHeaders") { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:185:23 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.185 const credentials = { ~186 "x-algolia-api-key": apiKey, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~187 "x-algolia-application-id": appId ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~188 }; ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:190:15 - error TS1183: An implementation cannot be declared in ambient contexts.190 headers() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:193:23 - error TS1183: An implementation cannot be declared in ambient contexts.193 queryParameters() { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:201:3 - error TS7031: Binding element 'func' implicitly has an 'any' type.201 func, ~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:202:3 - error TS7031: Binding element 'validate' implicitly has an 'any' type.202 validate, ~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:203:3 - error TS7031: Binding element 'aggregator' implicitly has an 'any' type.203 aggregator, ~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:204:3 - error TS7031: Binding element 'error' implicitly has an 'any' type.204 error, ~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:206:4 - error TS1183: An implementation cannot be declared in ambient contexts.206 }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:207:17 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.207 const retry = (previousResponse) => { ~~~~~~~~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:207:18 - error TS7006: Parameter 'previousResponse' implicitly has an 'any' type.207 const retry = (previousResponse) => { ~~~~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:207:39 - error TS1183: An implementation cannot be declared in ambient contexts.207 const retry = (previousResponse) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:208:45 - error TS1183: An implementation cannot be declared in ambient contexts.208 return new Promise((resolve, reject) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:209:36 - error TS7006: Parameter 'response' implicitly has an 'any' type.209 func(previousResponse).then((response) => { ~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:209:49 - error TS1183: An implementation cannot be declared in ambient contexts.209 func(previousResponse).then((response) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:211:11 - error TS1036: Statements are not allowed in ambient contexts.211 aggregator(response); ~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:214:11 - error TS1036: Statements are not allowed in ambient contexts.214 return resolve(response); ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:217:11 - error TS1036: Statements are not allowed in ambient contexts.217 return reject(new Error(error.message(response)));~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:219:33 - error TS1183: An implementation cannot be declared in ambient contexts.
219 returnsetTimeout(() => {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:222:17 - error TS7006: Parameter 'err' implicitly has an 'any' type.
222 }).catch((err) => { ~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:222:25 - error TS1183: An implementation cannot be declared in ambient contexts.222 }).catch((err) => { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:227:10 - error TS2554: Expected 1 arguments, but got 0.227 return retry(); ~~~~~ node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:207:18207 const retry = (previousResponse) => { ~~~~~~~~~~~~~~~~ An argument for 'previousResponse' was not provided.node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:231:28 - error TS7031: Binding element 'algoliaAgents' implicitly has an 'any' type.231 function getAlgoliaAgent({ algoliaAgents, client, version }) { ~~~~~~~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:231:43 - error TS7031: Binding element 'client' implicitly has an 'any' type.231 function getAlgoliaAgent({ algoliaAgents, client, version }) { ~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:231:51 - error TS7031: Binding element 'version' implicitly has an 'any' type.231 function getAlgoliaAgent({ algoliaAgents, client, version }) { ~~~~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:231:62 - error TS1183: An implementation cannot be declared in ambient contexts.231 function getAlgoliaAgent({ algoliaAgents, client, version }) { ~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:232:31 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.232 const defaultAlgoliaAgent = createAlgoliaAgent(version).add({ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~233 segment: client, ~~~~~~~~~~~~~~~~~~~~234 version ~~~~~~~~~~~235 }); ~~~~node_modules/.pnpm/@algolia+client-common@5.9.1/node_modules/@algolia/client-common/dist/common.d.ts:236:26 - error TS7006: Parameter 'algoliaAgent' implicitly has an 'any' type.236 algoliaAgents.forEach((algoliaAgent) => defaultAlgoliaAgent.add(algoliaAgent));~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:241:29 - error TS1183: An implementation cannot be declared in ambient contexts.
241 functioncreateNullLogger() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:243:11 - error TS7006: Parameter '_message' implicitly has an 'any' type.
243 debug(_message, _args) {
~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:243:21 - error TS7006: Parameter '_args' implicitly has an 'any' type.
243 debug(_message, _args) {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:243:28 - error TS1183: An implementation cannot be declared in ambient contexts.
243 debug(_message, _args) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:246:10 - error TS7006: Parameter '_message' implicitly has an 'any' type.
246 info(_message, _args) {
~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:246:20 - error TS7006: Parameter '_args' implicitly has an 'any' type.
246 info(_message, _args) {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:246:27 - error TS1183: An implementation cannot be declared in ambient contexts.
246 info(_message, _args) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:249:11 - error TS7006: Parameter '_message' implicitly has an 'any' type.
249 error(_message, _args) {
~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:249:21 - error TS7006: Parameter '_args' implicitly has an 'any' type.
249 error(_message, _args) {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:249:28 - error TS1183: An implementation cannot be declared in ambient contexts.
249 error(_message, _args) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:256:24 - error TS1039: Initializers are not allowed in ambient contexts.
256 var EXPIRATION_DELAY = 2 * 60 * 1e3;~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:257:29 - error TS7006: Parameter 'host' implicitly has an 'any' type.
257 functioncreateStatefulHost(host, status = "up") {
~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:257:50 - error TS1183: An implementation cannot be declared in ambient contexts.
257 functioncreateStatefulHost(host, status = "up") {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:258:22 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
258 const lastUpdate = Date.now();
~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:259:19 - error TS1183: An implementation cannot be declared in ambient contexts.
259 functionisUp() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:262:25 - error TS1183: An implementation cannot be declared in ambient contexts.
262 functionisTimedOut() {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:269:20 - error TS1039: Initializers are not allowed in ambient contexts.
269 var AlgoliaError = class extends Error {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:270:10 - error TS1039: Initializers are not allowed in ambient contexts.
270 name = "AlgoliaError";~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:271:15 - error TS7006: Parameter 'message' implicitly has an 'any' type.
271 constructor(message, name) {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:271:24 - error TS7006: Parameter 'name' implicitly has an 'any' type.
271 constructor(message, name) {
~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:271:30 - error TS1183: An implementation cannot be declared in ambient contexts.
271 constructor(message, name) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:274:7 - error TS1036: Statements are not allowed in ambient contexts.
274 this.name = name;~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:278:27 - error TS1039: Initializers are not allowed in ambient contexts.
278 var ErrorWithStackTrace = class extends AlgoliaError {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:280:15 - error TS7006: Parameter 'message' implicitly has an 'any' type.
280 constructor(message, stackTrace, name) {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:280:24 - error TS7006: Parameter 'stackTrace' implicitly has an 'any' type.
280 constructor(message, stackTrace, name) {
~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:280:36 - error TS7006: Parameter 'name' implicitly has an 'any' type.
280 constructor(message, stackTrace, name) {
~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:280:42 - error TS1183: An implementation cannot be declared in ambient contexts.
280 constructor(message, stackTrace, name) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:285:18 - error TS1039: Initializers are not allowed in ambient contexts.
285 var RetryError = class extends ErrorWithStackTrace {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:286:15 - error TS7006: Parameter 'stackTrace' implicitly has an 'any' type.
286 constructor(stackTrace) {
~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:286:27 - error TS1183: An implementation cannot be declared in ambient contexts.
286 constructor(stackTrace) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:294:16 - error TS1039: Initializers are not allowed in ambient contexts.
294 var ApiError = class extends ErrorWithStackTrace {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:296:15 - error TS7006: Parameter 'message' implicitly has an 'any' type.
296 constructor(message, status, stackTrace, name = "ApiError") {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:296:24 - error TS7006: Parameter 'status' implicitly has an 'any' type.
296 constructor(message, status, stackTrace, name = "ApiError") {
~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:296:32 - error TS7006: Parameter 'stackTrace' implicitly has an 'any' type.
296 constructor(message, status, stackTrace, name = "ApiError") {
~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:296:63 - error TS1183: An implementation cannot be declared in ambient contexts.
296 constructor(message, status, stackTrace, name = "ApiError") {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:301:28 - error TS1039: Initializers are not allowed in ambient contexts.
301 var DeserializationError = class extends AlgoliaError {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:303:15 - error TS7006: Parameter 'message' implicitly has an 'any' type.
303 constructor(message, response) {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:303:24 - error TS7006: Parameter 'response' implicitly has an 'any' type.
303 constructor(message, response) {
~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:303:34 - error TS1183: An implementation cannot be declared in ambient contexts.
303 constructor(message, response) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:308:24 - error TS1039: Initializers are not allowed in ambient contexts.
308 var DetailedApiError = class extends ApiError {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:310:15 - error TS7006: Parameter 'message' implicitly has an 'any' type.
310 constructor(message, status, error, stackTrace) {
~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:310:24 - error TS7006: Parameter 'status' implicitly has an 'any' type.
310 constructor(message, status, error, stackTrace) {
~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:310:32 - error TS7006: Parameter 'error' implicitly has an 'any' type.
310 constructor(message, status, error, stackTrace) {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:310:39 - error TS7006: Parameter 'stackTrace' implicitly has an 'any' type.
310 constructor(message, status, error, stackTrace) {
~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:310:51 - error TS1183: An implementation cannot be declared in ambient contexts.
310 constructor(message, status, error, stackTrace) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:317:18 - error TS7006: Parameter 'array' implicitly has an 'any' type.
317 functionshuffle(array) {
~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:317:25 - error TS1183: An implementation cannot be declared in ambient contexts.
317 functionshuffle(array) {
~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:318:25 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
318 const shuffledArray = array;~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:319:16 - error TS1039: Initializers are not allowed in ambient contexts.
319 for (let c = array.length - 1; c > 0; c--) {
~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:320:15 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
320 const b = Math.floor(Math.random() * (c + 1));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:321:15 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
321 const a = array[c];~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:322:5 - error TS1036: Statements are not allowed in ambient contexts.
322 shuffledArray[c] = array[b];~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:327:23 - error TS7006: Parameter 'host' implicitly has an 'any' type.
327 functionserializeUrl(host, path, queryParameters) {
~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:327:29 - error TS7006: Parameter 'path' implicitly has an 'any' type.
327 functionserializeUrl(host, path, queryParameters) {
~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:327:35 - error TS7006: Parameter 'queryParameters' implicitly has an 'any' type.
327 functionserializeUrl(host, path, queryParameters) {
~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:327:52 - error TS1183: An implementation cannot be declared in ambient contexts.
327 functionserializeUrl(host, path, queryParameters) {
~
... more ...
Found 354 errors in 11 files.
Errors Files
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-abtesting/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-analytics/dist/node.d.ts:2
316 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-common/dist/common.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-insights/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-personalization/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-query-suggestions/dist/node.d.ts:2
5 node_modules/.pnpm/@[email protected]/node_modules/@algolia/client-search/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/ingestion/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/monitoring/dist/node.d.ts:2
4 node_modules/.pnpm/@[email protected]/node_modules/@algolia/recommend/dist/node.d.ts:2
1 node_modules/.pnpm/[email protected]/node_modules/algoliasearch/dist/node.d.ts:1
The text was updated successfully, but these errors were encountered:
Description
Using
algoliasearch
with"skipLibCheck": false
leads to many errorsCodeSandbox: https://codesandbox.io/p/devbox/776xj2?file=%2Ftsconfig.json%3A31%2C27
[email protected]
and thetsconfig.json
file below, which includes"skipLibCheck": false
[email protected]
algoliasearch
named import inindex.ts
and use it in any waytsc
and see many errorsClient
All
Version
5.9.1
Relevant log output
The text was updated successfully, but these errors were encountered: