amocrm-client
Version:
JS Library for AmoCRM
8 lines (7 loc) • 520 B
TypeScript
import { IRequestOptions } from "../../../interfaces/common";
import { ICriteria, IResourceEntity, IResourceFactory, IResourcePagination } from "../../../interfaces/api";
import { TFactoryConstructor } from "../../../types";
export interface IHasGetWithCriteria<T> {
get(criteria?: Partial<ICriteria>, options?: IRequestOptions): Promise<IResourcePagination<T>>;
}
export declare function hasGetByCriteria<T extends IResourceEntity<IResourceFactory<T>>>(Base: TFactoryConstructor<T>): TFactoryConstructor<T>;