@twinfinity/core
    Preparing search index...

    Class MergableObjectWithState<P>

    Describes the relation between a local object and its remote counterpart. Also gives the state for the local object and (if exists) a conflict reason between the local and the remote object. A conflict typically arises when the local object has been modified and so has the remote object. Example: local object was modified but remote object was deleted. This conflict cannot be resolved automatically.

    Type Parameters

    • P
    Index

    Constructors

    Properties

    local: P

    local object.

    onStateChange: (p: MergableObjectWithState<P>) => void
    remote?: P

    Remote object (if there is one)

    Accessors

    • get hasConflict(): boolean

      true if a conflict exists. Otherwise false

      Returns boolean