@ipp/cli
Version:
An image build orchestrator for the modern web
13 lines (12 loc) • 539 B
TypeScript
/**
* Image Processing Pipeline - Copyright (c) Marcus Cemes
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare type Operator<I, O> = RawOperator<I, ObjectStream<O>>;
export declare type RawOperator<I, O> = (source: AsyncIterable<I>) => O;
export interface ObjectStream<T> extends AsyncIterable<T> {
pipe: <O>(operator: RawOperator<T, O>) => O;
}
export declare function createObjectStream<T>(source: AsyncIterable<T>): ObjectStream<T>;