From b1ce602e79be6f56978a6ca3b0900838697d99f7 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sun, 2 Sep 2018 10:42:22 +0200 Subject: [PATCH] fix/cleanup(typings): move static properties above methods Make BitField.FLAGS declaration less strict, allowing enums and typed dicts --- 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 808fcf6e4..32dac849d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -36,8 +36,8 @@ declare module 'discord.js' { } export class ActivityFlags extends BitField { - public static resolve(permission: BitFieldResolvable): number; public static FLAGS: Record; + public static resolve(permission: BitFieldResolvable): number; } export class APIMessage { @@ -108,8 +108,8 @@ declare module 'discord.js' { public toJSON(): number; public valueOf(): number; public [Symbol.iterator](): Iterator; + public static FLAGS: object; public static resolve(bit?: BitFieldResolvable): number; - public static FLAGS: { [key: string]: number }; } export class CategoryChannel extends GuildChannel { @@ -1014,8 +1014,8 @@ declare module 'discord.js' { } export class Speaking extends BitField { - public static resolve(permission: BitFieldResolvable): number; public static FLAGS: Record; + public static resolve(permission: BitFieldResolvable): number; } export class Structures {