Libraries
    Preparing search index...

    Type Alias SelectSelector<T>

    SelectSelector: (
        tree: PropertyDescriptorTree<SchemaBase<T>, SchemaBase<T>>,
    ) => Record<string, PropertyDescriptor<any, any, 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>>
      • Parameters

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

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