UNPKG

most-from-array

Version:
11 lines (10 loc) 412 B
/** @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 };