diff --git a/type-definitions/immutable.d.ts b/type-definitions/immutable.d.ts index 636528036..30a491ed2 100644 --- a/type-definitions/immutable.d.ts +++ b/type-definitions/immutable.d.ts @@ -3124,6 +3124,13 @@ declare namespace Immutable { } } + /** + * For pre-ES2015 support where `Symbol.iterator` does not exist. + */ + interface FauxIterable { + ['@@iterator'](): Iterator; + } + /** * Creates a Seq. * @@ -3147,7 +3154,11 @@ declare namespace Immutable { function Seq(collection: Collection.Keyed): Seq.Keyed; function Seq(collection: Collection.Set): Seq.Set; function Seq( - collection: Collection.Indexed | Iterable | ArrayLike + collection: + | Collection.Indexed + | Iterable + | FauxIterable + | ArrayLike ): Seq.Indexed; function Seq(obj: { [key: string]: V }): Seq.Keyed; function Seq(): Seq;