map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function toQueryResult

    • Creates a query result dependent of the input parameter. It is intended for backwards compatibility to ensure that an AsyncQueryResult carries e.g a 'total' promise.

      Type Parameters

      • T extends {}

      Parameters

      • result: T[]

        Original result.

      Returns ResultItems<T>

      A QueryResult object.

    • Creates a query result dependent of the input parameter. It is intended for backwards compatibility to ensure that an AsyncQueryResult carries e.g a 'total' promise.

      Type Parameters

      • T extends {}

      Parameters

      Returns AsyncQueryResult<T>

      A QueryResult object.

    • Creates a query result dependent of the input parameter. It is intended for backwards compatibility to ensure that an AsyncQueryResult carries e.g a 'total' promise.

      Type Parameters

      • T extends {}

      Parameters

      • result: undefined

        Original result.

      Returns ResultItems<T>

      A QueryResult object.