typings(Collection): add missing thisArg to partition (#3167)

This commit is contained in:
Ryan Munro
2019-04-01 18:36:03 +11:00
committed by SpaceEEC
parent 04fa56d0c0
commit 4b6e8fcab5

2
typings/index.d.ts vendored
View File

@@ -289,7 +289,7 @@ declare module 'discord.js' {
public lastKey(): K | undefined;
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): [Collection<K, V>, Collection<K, V>];
public partition(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): [Collection<K, V>, Collection<K, V>];
public random(): V | undefined;
public random(count: number): V[];
public randomKey(): K | undefined;