Skip to content

Commit c15f494

Browse files
authored
Merge pull request #87 from zastrowm/addEnumerableFromIterator
Add Enumerable.from support for Iterator<T>
2 parents ab15b96 + b6e47e5 commit c15f494

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

linq.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ declare namespace Enumerable {
1717
export function from(obj: boolean): IEnumerable<boolean>;
1818
export function from(obj: string): IEnumerable<string>;
1919
export function from<T>(obj: T[]): IEnumerable<T>;
20+
export function from<T>(obj: Iterator<T>): IEnumerable<T>;
2021
export function from<T>(obj: { length: number;[x: number]: T; }): IEnumerable<T>;
2122
export function from<T>(obj: { [key: string]: T }): IEnumerable<{ key: string; value: T }>;
2223
export function from(obj: any): IEnumerable<{ key: string; value: any }>;

0 commit comments

Comments
 (0)