diff --git a/typings/index.d.ts b/typings/index.d.ts index f6488599d..45f2b582e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -294,8 +294,8 @@ declare module 'discord.js' { public equals(collection: Collection): boolean; public every(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): boolean; public filter(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): Collection; - public find(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): V; - public findKey(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): K; + public find(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): V | undefined; + public findKey(fn: (value: V, key: K, collection: Collection) => boolean, thisArg?: any): K | undefined; public first(): V | undefined; public first(count: number): V[]; public firstKey(): K | undefined;