7 lines
227 B
TypeScript
7 lines
227 B
TypeScript
|
// Repro from #25291
|
||
|
|
||
|
type PromisedTuple<L extends any[], U = (...args: L) => void> =
|
||
|
U extends (h: infer H, ...args: infer R) => [Promise<H>, ...PromisedTuple<R>] ? [] : []
|
||
|
|
||
|
type Promised = PromisedTuple<[1, 2, 3]>
|