UNPKG

497 BTypeScriptView Raw
1import { IterableX } from './iterable';
2import { AsyncIterableX } from './asynciterable';
3export declare type UnaryFunction<T, R> = (source: T) => R;
4export declare type OperatorFunction<T, R> = UnaryFunction<Iterable<T>, IterableX<R>>;
5export declare type OperatorAsyncFunction<T, R> = UnaryFunction<AsyncIterable<T>, AsyncIterableX<R>>;
6export declare type MonoTypeOperatorFunction<T> = OperatorFunction<T, T>;
7export declare type MonoTypeOperatorAsyncFunction<T> = OperatorAsyncFunction<T, T>;