mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
adding Stream.iterate() constructor
This commit is contained in:
Vendored
+1
@@ -9,6 +9,7 @@ declare class Stream<T> {
|
||||
static range (startInclusive: number, endExclusive: number): Stream<number>;
|
||||
static rangeClosed (startInclusive: number, endInclusive: number): Stream<number>;
|
||||
static generate <T> (supplier: Stream.Supplier<T>): Stream<T>;
|
||||
static iterate<T>(seed: T, fn: Stream.Function<T, T>): Stream<T>;
|
||||
// static empty<T>(): Stream<T>;
|
||||
|
||||
anyMatch(predicate: Stream.Predicate<T>): boolean;
|
||||
|
||||
Reference in New Issue
Block a user