Libraries v5.0.0
    Preparing search index...

    Type Alias SelectProjection<R>

    SelectProjection: {
        [K in keyof R]: R[K] extends AggregateExpression<infer T>
            ? T
            : InferType<DescriptorPropertySchema<R[K]>>
    }

    Result row type produced by a SelectProjection selector.

    Each entry's value is the InferType of the property schema the descriptor points at, so .select(t => ({ id: t.id, n: t.title })) yields { id: number; n: string }.

    Type Parameters

    • R extends Record<string, unknown>