Setup Ant
    Preparing search index...

    Class Release

    Represents a GitHub release.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Creates a new release.

      Parameters

      • version: string

        The version number.

      • options: Partial = {}

        An object providing values to initialize this instance.

      Returns Release

    Properties

    archived: boolean

    Value indicating whether this release is archived.

    version: string

    The version number.

    Accessors

    • get exists(): boolean

      Value indicating whether this release exists.

      Returns boolean

    • get url(): URL

      The download URL.

      Returns URL

    Methods

    • Finds a release that matches the specified version constraint.

      Parameters

      • constraint: string

        The version constraint.

      Returns null | Release

      The release corresponding to the specified constraint, or null if not found.

    • Gets the release corresponding to the specified version.

      Parameters

      • version: string

        The version number of a release.

      Returns null | Release

      The release corresponding to the specified version, or null if not found.