chore: remove dependence on discord.js Awaitable type

This commit is contained in:
Jacob Nguyen
2023-04-16 14:17:56 -05:00
parent 37ddef170f
commit 1fa7eef336
3 changed files with 5 additions and 4 deletions

View File

@@ -8,6 +8,9 @@ import type { ErrorHandling, Logging, ModuleManager } from '../core/contracts';
import type { ModuleStore } from '../core/structures/moduleStore';
import type SernEmitter from '../core/sernEmitter';
import type { Container } from 'iti';
export type Awaitable<T> = PromiseLike<T> | T;
// Thanks to @kelsny
export type ParseType<T> = {
[K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never;