typings(Collection): add typings for partition (#3166)

This commit is contained in:
Ryan Munro
2019-04-01 18:35:17 +11:00
committed by SpaceEEC
parent 5cd6d8d380
commit 831f988fe2

1
typings/index.d.ts vendored
View File

@@ -344,6 +344,7 @@ declare module 'discord.js' {
public lastKey(): K;
public lastKey(count: number): K[];
public map<T>(fn: (value: V, key: K, collection: Collection<K, V>) => T, thisArg?: any): T[];
public partition(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): [Collection<K, V>, Collection<K, V>];
public random(): V;
public random(count: number): V[];
public randomKey(): K;