From 745a0ea942e277499505e69e7890a1aa768f217a Mon Sep 17 00:00:00 2001 From: didinele Date: Wed, 28 Aug 2019 12:11:15 +0300 Subject: [PATCH] typings(DataStore): correct return types for resolve, resolveID and remove (#3448) * fix(typings): DataStore#resolve & DataStore#resolveID can also return null. * fix(typings): DataStore#remove returns a boolean, not void. Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com> --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index c6a69c911..519acadf9 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1715,9 +1715,9 @@ declare module 'discord.js' { public client: Client; public holds: VConstructor; public add(data: any, cache?: boolean, { id, extras }?: { id: K, extras: any[] }): V; - public remove(key: K): void; - public resolve(resolvable: R): V; - public resolveID(resolvable: R): K; + public remove(key: K): boolean; + public resolve(resolvable: R): V | null; + public resolveID(resolvable: R): K | null; } export class GuildEmojiRoleStore extends OverridableDataStore {