algolia / angular-instantsearch

⚡️Lightning-fast search for Angular apps, by Algolia
https://algolia.com/doc/deprecated/instantsearch/angular/v4/api-reference/instantsearch/
MIT License
261 stars 73 forks source link

Circular reference Awaited in utils.d.ts #835

Closed cyberworkz closed 3 years ago

cyberworkz commented 3 years ago

starting angular instantseach with ng server gives the following error messages

 export declare type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T;
                       ~~~~~~~
../../../node_modules/instantsearch.js/es/types/utils.d.ts:12:67 - error TS2315: Type 'Awaited' is not generic.

Environment:

tkrugg commented 3 years ago

Hi @cyberworkz, thanks for reaching out. This is more of a typescript version issue. What typescript version are you using? This should work in any version >= 4.1.5. I'll close this for now, but feel free to reopen if you're still having issue after upgrading your typescript version.

cyberworkz commented 3 years ago

You are correct, thanks for the reply.

danielkariti commented 2 years ago

How to fix without upgrading TS? still encountering the issue and it's not possible to upgrade ts without breaking the whole system