UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

12 lines (11 loc) 860 B
import { ITableRowModel } from '@docsvision/webclient/Platform/ITableRowModel'; import { TableRowsSelectionModel } from '@docsvision/webclient/Platform/TableRowsSelectionModel'; import { BatchOperationErrorInfo } from './BatchOperationErrorInfo'; export declare type BatchOperationExecuteCallback = (row: ITableRowModel) => Promise<BatchOperationErrorInfo[]> | Promise<BatchOperationErrorInfo[]>; export interface IBatchOperationsPerformer { perform(operationName: string, selection: TableRowsSelectionModel, operation: BatchOperationExecuteCallback, operationDescription?: string): Promise<BatchOperationErrorInfo[]>; } export declare type $BatchOperationsPerformer = { batchOperationsPerformer: IBatchOperationsPerformer; }; export declare const $BatchOperationsPerformer: string | ((model?: $BatchOperationsPerformer) => IBatchOperationsPerformer);