mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
adding Stream class with static factory methods
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for streamjs 1.4.0
|
||||
// Project: http://streamjs.org/
|
||||
// Definitions by: Bence Eros <https://github.com/erosb>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare class Stream<T> {
|
||||
static make<T> (...elems: T[]): Stream<T>;
|
||||
static make<T>(elems: T[]): Stream<T>;
|
||||
static range<T>(startInclusive: number, endExclusive: number): Stream<T>;
|
||||
static rangeClosed<T>(startInclusive: number, endInclusive: number): Stream<T>;
|
||||
static generate<T>(supplier: () => T): Stream<T>;
|
||||
}
|
||||
Reference in New Issue
Block a user