Type alias ObjectResult

ObjectResult: {
    data: ReadableStream<Uint8Array>;
    error: Promise<Error | null>;
    info: ObjectInfo;
}

An object that allows reading the object stored under a specified name.

Type declaration

  • data: ReadableStream<Uint8Array>

    The readable stream where you can read the data.

  • error: Promise<Error | null>

    A promise that will resolve to an error if the readable stream failed to process the entire response. Should be checked when the readable stream has finished yielding data.

  • info: ObjectInfo

    The info of the object that was retrieved.

Generated using TypeDoc