Libraries v5.0.0
    Preparing search index...

    Type Alias SelectSelector<T>

    SelectSelector: (
        tree: PropertyDescriptorTree<SchemaBase<T>, SchemaBase<T>>,
    ) => Record<
        string,
        PropertyDescriptor<any, any, any>
        | AggregateExpression<any>,
    >

    Callback shape accepted by the projection overload of select. The callback receives the schema's property-descriptor tree and returns an { alias: descriptor } record.

    Type Parameters

    • T extends ObjectSchemaBuilder<any, any, any, any, any, any, any>

    Type Declaration

      • (
            tree: PropertyDescriptorTree<SchemaBase<T>, SchemaBase<T>>,
        ): Record<
            string,
            PropertyDescriptor<any, any, any>
            | AggregateExpression<any>,
        >
      • Parameters

        • tree: PropertyDescriptorTree<SchemaBase<T>, SchemaBase<T>>

        Returns Record<string, PropertyDescriptor<any, any, any> | AggregateExpression<any>>