Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LifeCycle

Hierarchy

  • LifeCycle

Index

Constructors

constructor

Properties

deleted

deleted: Version

deletionMessage

deletionMessage: string

deprecated

deprecated: Version

deprecationMessage

deprecationMessage: string

introduced

introduced: Version

Methods

getCurrentState

isAvailableIn

  • isAvailableIn(version: Version): boolean
  • Yields true if this feature is available in the specified version, that is:

    • it was in base, or added before the specified version
    • it was not removed yet in the given version
    • deprecation statues does not influence it results

    Parameters

    Returns boolean

isDeprecatedIn

  • isDeprecatedIn(version: Version): boolean
  • Yields true only if the feature is available, (added but not yet removed) and deprecated in the specified version.

    Parameters

    Returns boolean

isRemovedIn

  • isRemovedIn(version: Version): boolean
  • Yields true only if this version was actively removed in the given version. Doesn't yield true if the feature was not yet introduced in the given version (see isAvailableIn for that)

    Parameters

    Returns boolean

reportVersionIssues

  • reportVersionIssues(version: Version, aboutWhatMessage: string, printWarnings: boolean): boolean
  • Checks a version based on this lifecycle. Returns true if something is thrown or warned, otherwise false

    Parameters

    • version: Version
    • aboutWhatMessage: string
    • printWarnings: boolean

    Returns boolean

Generated using TypeDoc