UNPKG

bx-rest

Version:

Bitrix24 REST API client angular, vue or typescript

16 lines (15 loc) 418 B
import { iBXRestAnswer } from '../base/answer'; export type keyBatch = string | number; export interface iBatchRequestParam<T> { name: string; param: T; } export type iBatchRequestParamHttp = { [key: keyBatch]: string; }; export type iBatchRequestParamArr<T> = { [key: keyBatch]: iBatchRequestParam<T>; }; export type iBatchRequestAnswer<T> = iBXRestAnswer<iBXRestAnswer<{ [key: keyBatch]: T; }>>;