diff --git a/konva.d.ts b/konva.d.ts index 3093ad54..8265ad4b 100644 --- a/konva.d.ts +++ b/konva.d.ts @@ -1137,12 +1137,13 @@ declare namespace Konva { fontStyle(fontStyle: string): this; } - class Collection { - [i: number]: any; - static toCollection(arr: any[]): Collection; - each(f: (el: Node) => void): void; - toArray(): any[]; + class Collection { + [i: number]: T; + each(f: (el: T) => void): void; + toArray(): T[]; length: number; + + static toCollection(arr: T[]): Collection; } class Transform {