Skip to content

fx-flow v0.7.0 / types / Expand

Type alias: Expand<T, Ignore>

Expand<T, Ignore>: T extends T ? T extends Ignore ? T : T extends (...args) => Promise<infer R> ? (...args) => Promise<Expand<R, Ignore>> : T extends (...args) => infer R ? (...args) => Expand<R, Ignore> : T extends object ? { [K in keyof T]: Expand&lt;T[K], Ignore&gt; } : T : never

Expand nested type deeply

Type parameters

T

Ignore = never

Source

packages/core/src/types/basic.ts:22

Released under the MIT License.