This class encapsulates read stream and the media type of Asset.

Constructors

Properties

Accessors

Constructors

  • Construct an instance of StreamAsset.

    Parameters

    • readStream: ReadableStream

      read stream of the asset. Cannot be undefined.

    • mimeType: string

      mime type of the read stream. Cannot be undefined.

    Returns StreamAsset

Properties

_mimeType: string
_readStream: ReadableStream

Accessors

  • get mimeType(): string
  • Returns the mime type of the asset.

    Returns string

    Mime Type of the asset.

  • get readStream(): ReadableStream
  • Returns the read stream of the asset.

    Returns ReadableStream

    Read Stream of the asset.

Generated using TypeDoc