diff options
Diffstat (limited to 'src/lib/extensions/global.d.ts')
-rw-r--r-- | src/lib/extensions/global.d.ts | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/extensions/global.d.ts b/src/lib/extensions/global.d.ts index 10869d0..6fd9d58 100644 --- a/src/lib/extensions/global.d.ts +++ b/src/lib/extensions/global.d.ts @@ -1,16 +1,10 @@ +/* eslint-disable no-var */ import { parse, stringify } from 'json5'; import { BushClient } from './discord-akairo/BushClient'; import { BushClientUtil } from './discord-akairo/BushClientUtil'; +type JSON5 = { parse: typeof parse; stringify: typeof stringify }; declare global { - type JSON5 = { parse: typeof parse; stringify: typeof stringify }; - namespace NodeJS { - export interface Global { - client: BushClient; - util: BushClientUtil; - JSON5: JSON5; - } - } - const client: BushClient; - const util: BushClientUtil; - const JSON5: JSON5; + var client: BushClient; + var util: BushClientUtil; + var JSON5: JSON5; } |