import { PipeTransform } from '@angular/core'; import { SafeAny } from '@ngx-simple/core/types'; export declare type Mapper = (item: T, ...args: SafeAny[]) => G; /** * 映射器 * * @example * { * readonly value = 125; * readonly max = 100; * readonly canValue = Mapper = (value: number, max: number) => Math.min(value, max); * } * * {{ value | mapper: canValue : max }} * // 100 */ export declare class SimMapperPipe implements PipeTransform { transform(value: T, mapper: Mapper, ...args: SafeAny[]): G; }