UNPKG

@web-deps/event-manager

Version:

A JavaScript library for managing events. It can be used both on the frontend and backend.

14 lines (13 loc) 468 B
interface EventInterface<SubjectInterface, DataType> { readonly name: string; readonly subject: SubjectInterface; data?: DataType; } declare class Event<SubjectInterface, DataType> implements EventInterface<SubjectInterface, DataType> { readonly name: string; readonly subject: SubjectInterface; data?: DataType; constructor(name: string, subject: SubjectInterface, data?: DataType); } export default Event; export type { EventInterface };