fx-flow v0.7.0 / types / Expand
Type alias: Expand<T, Ignore>
Expand<
T
,Ignore
>:T
extendsT
?T
extendsIgnore
?T
:T
extends (...args
) =>Promise
<infer R> ? (...args
) =>Promise
<Expand
<R
,Ignore
>> :T
extends (...args
) => infer R ? (...args
) =>Expand
<R
,Ignore
> :T
extendsobject
?{ [K in keyof T]: Expand<T[K], Ignore> }
:T
:never
Expand nested type deeply
Type parameters
• T
• Ignore = never