From 27d2ce7baf9a25d2e5eec76cd66b8ca14aabd5ee Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Fri, 5 Oct 2018 11:37:49 +0200 Subject: [PATCH] typings(Collection): each return Collection, not void --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index d5f8dcf58..ad9baa67e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -279,7 +279,7 @@ declare module 'discord.js' { public array(): V[]; public clone(): Collection; public concat(...collections: Collection[]): Collection; - public each(fn: (value: V, key: K, collection: Collection) => void, thisArg?: any): void; + public each(fn: (value: V, key: K, collection: Collection) => void, thisArg?: any): Collection; public equals(collection: Collection): boolean; public every(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): boolean; public filter(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): Collection;