mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
typings(Collection): add typings for partition (#3166)
This commit is contained in:
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -344,6 +344,7 @@ declare module 'discord.js' {
|
|||||||
public lastKey(): K;
|
public lastKey(): K;
|
||||||
public lastKey(count: number): K[];
|
public lastKey(count: number): K[];
|
||||||
public map<T>(fn: (value: V, key: K, collection: Collection<K, V>) => T, thisArg?: any): T[];
|
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(): V;
|
||||||
public random(count: number): V[];
|
public random(count: number): V[];
|
||||||
public randomKey(): K;
|
public randomKey(): K;
|
||||||
|
|||||||
Reference in New Issue
Block a user