Interface PitcherAPI

interface PitcherAPI {
    emit<Key extends "event">(
        eventName: Key,
        params: ApiEventMap[Key],
    ): void;
    off<Key extends "event">(
        eventName: Key,
        fn: EventReceiver<ApiEventMap[Key]>,
    ): void;
    on<Key extends "event">(
        eventName: Key,
        fn: EventReceiver<ApiEventMap[Key]>,
    ): void;
    request(
        type: string,
        body: any,
        callback: () => any,
    ): Promise<PitcherResponse>;
}

Hierarchy (View Summary)

Implemented by

Methods

Methods