typings(Collection): each return Collection<K, V>, not void

This commit is contained in:
SpaceEEC 2018-10-05 11:37:49 +02:00
parent 00a62a93e4
commit 27d2ce7baf
No known key found for this signature in database
GPG key ID: 8C8A2E338661B871

2
typings/index.d.ts vendored
View file

@ -279,7 +279,7 @@ declare module 'discord.js' {
public array(): V[];
public clone(): Collection<K, V>;
public concat(...collections: Collection<K, V>[]): Collection<K, V>;
public each(fn: (value: V, key: K, collection: Collection<K, V>) => void, thisArg?: any): void;
public each(fn: (value: V, key: K, collection: Collection<K, V>) => void, thisArg?: any): Collection<K, V>;
public equals(collection: Collection<any, any>): boolean;
public every(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): boolean;
public filter(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): Collection<K, V>;