@refinio/one.models
    Preparing search index...

    Implements

    Index

    Constructors

    Methods

    • Parameters

      • hash: SHA256Hash<BLOB>

        hash of the blob to be observed

      Returns Promise<ArrayBuffer>

      the blob as an array buffer

    • Parameters

      • hash: SHA256Hash<BlobDescriptor>

        hash of the blob descriptor to be observed

      Returns Promise<ArrayBuffer>

      the blob descriptor as an array buffer

    • Parameters

      • hash: SHA256Hash<BLOB>

        hash of the blob to be observed

      Returns Promise<string>

      the blob as a URL

    • Type Parameters

      • T extends OneVersionedObjectTypes

      Parameters

      • idHash: SHA256IdHash<T>

        id hash of the data to be observed

      Returns Promise<T>

      the latest version of the data

    • Type Parameters

      • T extends OneVersionedObjectTypes

      Parameters

      • idHash: SHA256IdHash<T>

        id hash of the data to be observed

      • onUpdate: (data: T) => void | Promise<void>

        function to be called when the data changes

      Returns Promise<() => void>

      disconnect listener function