UNPKG

ts-flex-query

Version:
11 lines (10 loc) 772 B
import { Expression } from '../../core/expression'; import { PipeOperator } from '../../core/pipe-operator'; import { ObjectValueSelector, ObjectValueSelectorType } from '../../helpers/object-value-selector'; export declare class MapOperator implements PipeOperator { readonly mapper: (input: Expression<any>) => Expression; constructor(mapper: (input: Expression<any>) => Expression); instantiate(input: Expression): Expression<any>; } export declare function map<TIn extends unknown[], TOut>(selector: PipeOperator<TIn[number], TOut>): PipeOperator<TIn, TOut[]>; export declare function map<TIn extends unknown[], TSelector extends ObjectValueSelector<TIn[number]>>(selector: TSelector): PipeOperator<TIn, ObjectValueSelectorType<TIn[number], TSelector>[]>;