UNPKG

ps2census

Version:

Client to connect to the PS2 Event Stream websocket.

19 lines (18 loc) 559 B
import { CollectionNames, Conditions, Params } from '../types/collection'; import { CensusGetResponse } from '../types/census'; export interface RestContract { /** * Run a count query * * @param collection * @param query */ count<C extends CollectionNames>(collection: C, query: Conditions<C>): Promise<number>; /** * Execute a get query directly * * @param collection * @param params */ get<C extends CollectionNames, R>(collection: C, params: Params<C>): Promise<CensusGetResponse<C, R>>; }