UNPKG

@peacockproject/core

Version:

Type definitions for Peacock's core.

24 lines (23 loc) 907 B
import type { GameVersion, RequestWithJwt } from "../types/types"; import type { Response } from "express"; export declare function withLookupDialog(req: RequestWithJwt<{ contractId: string; }>, res: Response): void; /** * Toggles a contract as a user's favorite. * * @param userId The user's ID. * @param contractId The contract's ID. * @param gameVersion The game's version. * @returns If the contract is a favorite after the operation or not. */ export declare function toggleFavorite(userId: string, contractId: string, gameVersion: GameVersion): boolean; export declare function directRoute(req: RequestWithJwt, res: Response): void; /** * Takes an array of contract IDs and deletes them from the user's favorites. * @param req The request. * @param res The response. */ export declare function deleteMultiple(req: RequestWithJwt<{ mode?: string; }, string[]>, res: Response): void;