desi-mongoose
Version:
A fun and intuitive MongoDB ODM for Node.js with a Hinglish twist
13 lines (12 loc) • 522 B
TypeScript
type EventHandler = (...args: any[]) => Promise<void> | void;
export declare class DesiEvents {
private static listeners;
private static middleware;
static pehle(event: string, handler: EventHandler): void;
static baadMein(event: string, handler: EventHandler): void;
static sunno(event: string, callback: EventHandler): void;
static bolo(event: string, ...args: any[]): Promise<void>;
private static chalaoMiddleware;
static hatao(event: string, handler: EventHandler): void;
}
export {};