@metreeca/blue - v0.9.1
    Preparing search index...

    Type Alias Infer<S>

    Infer: S extends () => infer R
        ? R extends { model: infer T }
            ? T
            : R extends Lazy<{ model: unknown }> ? Infer<R> : never
        : S extends { model: infer T } ? T : never

    Infers the model type from a Lazy shape.

    Recursively resolves factory functions and extracts the model type from the underlying shape.

    Type Parameters

    • S extends Lazy<{ model: unknown }>

      The lazy shape type