Frodo Library - v5.0.0-65
    Preparing search index...

    Type Alias LeftOutAttributesCallback

    LeftOutAttributesCallback: (id: string, attributes: string[]) => void

    Callback that tells the caller which attributes of an object were left out. The server refuses an attribute that it does not know; the library then leaves the unknown top-level attributes out of a copy of the body and sends it once more. When an object was stored without such attributes, the callback is called once for that object, after the second request has succeeded. It is not called when nothing was left out, and not when the object could not be stored. The callback should not throw: an error it throws ends that call with that error.

    Type Declaration

      • (id: string, attributes: string[]): void
      • Parameters

        • id: string

          the id of the object that was stored without the attributes

        • attributes: string[]

          the names of the top-level attributes that were left out; a new array that the callback may keep

        Returns void