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
resulting in
(attaching the zip here πΌ test-ts.zip)
src/issue-1.ts(2,9): error TS6133: 'k' is declared but its value is never read.
src/issue-1.ts(2,31): error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'readonly [Promise<typeof LRUCache>, Promise<typeof LRUCache>, Promise<typeof LRUCache>, Promise<typeof LRUCache>, Promise<typeof LRUCache>, ... 5 more ..., Promise<...>]' is not assignable to parameter of type 'Iterable<typeof LRUCache | PromiseLike<typeof LRUCache>>'.
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
Type 'IteratorResult<Promise<typeof LRUCache> | Promise<typeof dayjs>, any>' is not assignable to type 'IteratorResult<typeof LRUCache | PromiseLike<typeof LRUCache>, any>'.
Type 'IteratorYieldResult<Promise<typeof LRUCache> | Promise<typeof dayjs>>' is not assignable to type 'IteratorResult<typeof LRUCache | PromiseLike<typeof LRUCache>, any>'.
Type 'IteratorYieldResult<Promise<typeof LRUCache> | Promise<typeof dayjs>>' is not assignable to type 'IteratorYieldResult<typeof LRUCache | PromiseLike<typeof LRUCache>>'.
Type 'Promise<typeof LRUCache> | Promise<typeof dayjs>' is not assignable to type 'typeof LRUCache | PromiseLike<typeof LRUCache>'.
Type 'Promise<typeof dayjs>' is not assignable to type 'typeof LRUCache | PromiseLike<typeof LRUCache>'.
Type 'Promise<typeof dayjs>' is not assignable to type 'PromiseLike<typeof LRUCache>'.
Types of property 'then' are incompatible.
Type '<TResult1 = typeof dayjs, TResult2 = never>(onfulfilled?: ((value: typeof dayjs) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | null | undefined) => Promise<...>' is not assignable to type '<TResult1 = typeof LRUCache, TResult2 = never>(onfulfilled?: ((value: typeof LRUCache) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<...>) | null | undefined) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type 'typeof dayjs' is not assignable to type 'typeof LRUCache'.
Type 'typeof dayjs' provides no match for the signature 'new <K, V>(options?: Options<K, V> | undefined): LRUCache<K, V>'.
π Actual behavior
The compiler throws erros.
π Expected behavior
There shouldn't be any errors.
The text was updated successfully, but these errors were encountered:
When I put more than 10 dynamic imports on
Promise.all
typing breaks.Bug Report
π Search Terms
promise.all
,dynamic import
π Version & Regression Information
Spotted on
^4.4.2
Not sure about older versions.
β― Playground Link
Since this depends on importing modules, I'm attaching here the zip (manly 3 files,
index.js
,package.json
,tsconfig.json
) instead of playground link.π» Code
tsconfig.json
When I put more than 10 entries on
Promise.all
, typing breaks.Now uncommenting 11th entry
resulting in
(attaching the zip here πΌ test-ts.zip)
π Actual behavior
The compiler throws erros.
π Expected behavior
There shouldn't be any errors.
The text was updated successfully, but these errors were encountered: