import { DataFieldDescriptor, IDataField } from "./interfaces"; import Subscriber from "../../observer/Subscriber"; /** * The field that is stored in a record of a store */ export default class DataField implements IDataField { /** * The descriptor of the field */ private _fieldDescriptor; /** The current value */ private _value?; /** * The initial value of the field * The initial value is the one set on the initialize function and * corresponds to the value of the field of an empty record or a loaded one. * A field is considered "modified" if its current value is different from the "initial" one */ private _initialValue?; /** The observer to notify when the value of the field changed */ private _observer; constructor(fieldDescriptor: DataFieldDescriptor, subscriber: Subscriber); get name(): string; get isId(): boolean; initialize(value: any): void; set value(value: any); get value(): any; reset(): void; hasSameInitialValue(value: any): boolean; } //# sourceMappingURL=DataField.d.ts.map