UNPKG

shaman-website-compiler

Version:

Compile raw HTML, CSS and Javascript into the smallest possible, SEO friendly website.

13 lines (12 loc) 480 B
export interface IEventService { subscribe<T>(event: string, callback: (data: T) => void): void; publish<T>(event: string, data?: T): void; removeAllListeners: (event: string) => void; } export declare class EventService implements IEventService { private eventEmmitter; constructor(); subscribe: <T>(event: string, callback: (data: T) => void) => void; publish: <T>(event: string, data?: T) => void; removeAllListeners: (event: string) => void; }