Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EntryImage

Represents the image of an entry.

param

Instance of compendium

param

ID or name of entry

Hierarchy

  • EntryImage

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

compendium_instance

compendium_instance: any

entry

Methods

download

  • download(output_file?: string, callback?: Function, timeout?: number, error_callback?: Function): void
  • Downloads the image of an entry

    Parameters

    • Optional output_file: string
    • callback: Function = ...
    • timeout: number = ...

      Time to wait for response before executing @param error_callback

    • error_callback: Function = ...

    Returns void

get_stream

  • Gets the stream.Transform object of image, useful for file uploads

    Parameters

    • callback: ImageGetStreamCallback

      Function to be executed with image

    • timeout: number = ...

      Time to wait for response before executing @param error_callback

    • error_callback: Function = ...

    Returns void

Generated using TypeDoc