UNPKG

amocrm-client

Version:
8 lines (7 loc) 539 B
import { TFactoryConstructor } from "../../../types"; import { IResourceEntity, IResourceFactory } from "../../../interfaces/api"; import { IRequestOptions } from "../../../interfaces/common"; export interface ICanDeleteByIdFactory<T extends IResourceEntity<IResourceFactory<T>>> extends IResourceFactory<T> { deleteById(identity: number, options?: IRequestOptions): Promise<boolean>; } export declare function hasDeleteById<T extends IResourceEntity<IResourceFactory<T>>>(Base: TFactoryConstructor<T>): TFactoryConstructor<T>;