mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 05:00:48 +00:00
fix(typings): Collection#find & findKey can return undefined (#3228)
* fix(typings): [Collection#find](https://github.com/didinele/discord.js/blob/master/src/util/Collection.js#L172) can also return undefined * same thing for findKey
This commit is contained in:
parent
23e6414420
commit
3f6d08a499
1 changed files with 2 additions and 2 deletions
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
|
|
@ -294,8 +294,8 @@ declare module 'discord.js' {
|
||||||
public equals(collection: Collection<any, any>): boolean;
|
public equals(collection: Collection<any, any>): boolean;
|
||||||
public every(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: 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>;
|
public filter(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): Collection<K, V>;
|
||||||
public find(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): V;
|
public find(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): V | undefined;
|
||||||
public findKey(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): K;
|
public findKey(fn: (value: V, key: K, collection: Collection<K, V>) => boolean, thisArg?: any): K | undefined;
|
||||||
public first(): V | undefined;
|
public first(): V | undefined;
|
||||||
public first(count: number): V[];
|
public first(count: number): V[];
|
||||||
public firstKey(): K | undefined;
|
public firstKey(): K | undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue