UNPKG

amocrm-client

Version:
11 lines (10 loc) 449 B
import { IEntityAttributes, IResourceEntity, IResourceFactory } from "../interfaces/api"; import { Moment } from "../interfaces/common"; export default class ResourceEntity<T extends IResourceFactory<IResourceEntity<T>>, V = IEntityAttributes> implements IResourceEntity<T> { id: number; updated_at: Date; protected readonly factory: T; constructor(factory: T, attributes?: V); getFactory(): T; isNew(): boolean; }