Skip to content

Commit c20c82c

Browse files
committed
Add overload to Enumerator based on Item method
1 parent 7326e8c commit c20c82c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib/scripthost.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ interface Enumerator<T = any> {
239239

240240
interface EnumeratorConstructor {
241241
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
242+
new <T = any>(collection: { Item(index: any): T });
242243
new <T = any>(collection: any): Enumerator<T>;
243244
}
244245

0 commit comments

Comments
 (0)