UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

26 lines (25 loc) 944 B
import { Settings } from '../../../settings'; import type { ActionRepo } from '../../../repo/action'; import type { AssetTransactionRepo } from '../../../repo/assetTransaction'; import type { OfferRateLimitRepo } from '../../../repo/rateLimit/offer'; import type { ReservationRepo } from '../../../repo/reservation'; import type { SettingRepo } from '../../../repo/setting'; import type { StockHolderRepo } from '../../../repo/stockHolder'; import type { TaskRepo } from '../../../repo/task'; type ICancelOperation<T> = (repos: { action: ActionRepo; stockHolder: StockHolderRepo; offerRateLimit: OfferRateLimitRepo; reservation: ReservationRepo; setting: SettingRepo; task: TaskRepo; assetTransaction: AssetTransactionRepo; }, settings: Settings) => Promise<T>; /** * 取引中止 */ declare function cancel(params: { id?: string; transactionNumber?: string; }): ICancelOperation<void>; export { cancel };