hivest-js
Version:
A simple, fast and minimalist framework for Node.js that allows you to create modular applications with dependency injection using decorators
25 lines • 859 B
TypeScript
import { EventManager } from '../event-manager';
export declare class UserService {
private eventManager;
constructor(eventManager: EventManager);
createUser(userData: any): Promise<any>;
updateUser(id: number, userData: any): Promise<any>;
createUserEndpoint(ctx: any): Promise<void>;
}
export declare class NotificationService {
private eventManager;
constructor(eventManager: EventManager);
onUserCreated(user: any): Promise<void>;
onUserUpdated(user: any): Promise<void>;
private sendWelcomeEmail;
private updateUserCache;
sendNotification(ctx: any): Promise<void>;
}
export declare class LoggingService {
private eventManager;
constructor(eventManager: EventManager);
private logUserCreated;
private logUserUpdated;
private logNotification;
}
//# sourceMappingURL=event-example.d.ts.map