Ramble-FE / services / matching / matching.interface.ts
matching.interface.ts
Raw
import { EventEmitterInterface } from "../core";
import { MatchInfo, MatchingEventMap, MatchRequest } from "./matching.types";

export interface IMatchingService extends EventEmitterInterface<MatchingEventMap> {
    requestMatch(params: MatchRequest): Promise<MatchInfo | null>;
    abortMatch(): void;
}