@dxos/client
    Preparing search index...

    Variable loadObjectReferencesConst

    loadObjectReferences: <
        T extends AnyLiveObject<any>,
        RefType,
        DerefType = RefType extends (infer U)[]
            ? NonNullable<U>[]
            : NonNullable<RefType>,
    >(
        objOrArray: T | T[],
        valueAccessor: (obj: T) => RefType,
        { timeout }?: { timeout: number },
    ) => Promise<T extends T[] ? DerefType[] : DerefType>

    EXPERIMENTAL - the API is subject to change.

    Type declaration

      • <
            T extends AnyLiveObject<any>,
            RefType,
            DerefType = RefType extends (infer U)[]
                ? NonNullable<U>[]
                : NonNullable<RefType>,
        >(
            objOrArray: T | T[],
            valueAccessor: (obj: T) => RefType,
            { timeout }?: { timeout: number },
        ): Promise<T extends T[] ? DerefType[] : DerefType>
      • Type Parameters

        Parameters

        • objOrArray: T | T[]

          an echo object or collection of objects with references to other echo objects.

        • valueAccessor: (obj: T) => RefType

          selector for a reference that needs to be loaded. if return type is an array the method exits when all entries are non-null. otherwise the method exits when valueAccessor is not null.

        • Optional{ timeout }: { timeout: number }

        Returns Promise<T extends T[] ? DerefType[] : DerefType>

    Use await Ref.load() instead.