UNPKG

504 BTypeScriptView Raw
1import { Mapper } from '@naturalcycles/js-lib';
2import { TransformTyped } from '../stream.model';
3/**
4 * Simplest version of `transformMap`.
5 * errorMode: IMMEDIATE
6 * Sync mode.
7 * Has 0 options to configure.
8 * If you need any configuration - use transformMap or transformMapSync.
9 * Sync (not async) version of transformMap.
10 * Supposedly faster, for cases when async is not needed.
11 */
12export declare function transformMapSimple<IN = any, OUT = IN>(mapper: Mapper<IN, OUT>): TransformTyped<IN, OUT>;