diff --git a/es-collections.d.ts b/es-collections.d.ts index c55bfd143..12a5cff7b 100644 --- a/es-collections.d.ts +++ b/es-collections.d.ts @@ -47,3 +47,15 @@ declare var Set: { new(l: List): Set; prototype: Set; } + +//Compatibility interfaces for rxjs +interface IteratorResult { + done: boolean; + value?: T; +} + +interface Iterator { + next(value?: any): IteratorResult; + return?(value?: any): IteratorResult; + throw?(e?: any): IteratorResult; +}