most-from-array
Version:
Creates a mostjs stream from an array
11 lines (10 loc) • 412 B
TypeScript
/** @license MIT License (c) copyright 2018 original author or authors */
/** @author Sergey Samokhov <hi@hoichi.io> */
import { Disposable, Scheduler, Sink, Stream } from '@most/types';
declare function fromArray<T>(a: T[]): FromArray<T>;
declare class FromArray<T> implements Stream<T> {
private a;
constructor(a: T[]);
run(sink: Sink<T>, scheduler: Scheduler): Disposable;
}
export { fromArray };