UNPKG

amocrm-client

Version:
20 lines (16 loc) 853 B
import { IResourceEntity, IResourceEntityWithEmbedded, IResourceFactory } from "./interfaces"; export type TStringValueObject = { [index: string]: string }; export type JSONValue = | string | number | boolean | { [x: string]: JSONValue } | Array<JSONValue>; export interface JSONObject { [x: string]: JSONValue; } /* eslint-disable @typescript-eslint/no-explicit-any */ export type TConstructor<T> = new (...args: any[]) => T; export type TFactoryConstructor<T extends IResourceEntity<IResourceFactory<T>>> = TConstructor<IResourceFactory<T>>; export type TEntityConstructor<T extends IResourceFactory<IResourceEntity<T>>> = TConstructor<IResourceEntity<T>>; export type TEntityEmbeddedConstructor<T extends IResourceFactory<IResourceEntityWithEmbedded<T>>> = TConstructor<IResourceEntityWithEmbedded<T>>;