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

    Type Alias ObjectData<T>

    Type stores the metadata and the data for a query result.

    type ObjectData<T = unknown> = {
        author?: SHA256IdHash<Person>;
        channelEntryHash: SHA256Hash<LinkedListEntry>;
        channelId: string;
        channelOwner?: SHA256IdHash<Person>;
        creationTime: Date;
        creationTimeHash: SHA256Hash<CreationTime>;
        data: T;
        dataHash: SHA256Hash<T extends OneObjectTypes ? T : OneObjectTypes>;
        id: string;
        sharedWith: SHA256IdHash<Person>[];
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    author?: SHA256IdHash<Person>
    channelEntryHash: SHA256Hash<LinkedListEntry>
    channelId: string
    channelOwner?: SHA256IdHash<Person>
    creationTime: Date
    creationTimeHash: SHA256Hash<CreationTime>
    data: T
    dataHash: SHA256Hash<T extends OneObjectTypes ? T : OneObjectTypes>
    id: string
    sharedWith: SHA256IdHash<Person>[]