Interface IVersion

Index

Methods

Methods

optional public deprecate(packageName?: string, since?: string, closure?: any, scope?: any)

[Method] Create a closure for deprecated code

Parameters

  • packageName?: string optional

    String The package name.

  • since?: string optional

    String The last version before it's deprecated.

  • closure?: any optional

    Function The callback function to be executed with the specified version is less than the current version.

  • scope?: any optional

    Object The execution scope (this) if the closure

optional public equals(target?: any): boolean

[Method] Returns whether this version equals to the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version equals to the target, false otherwise.

optional public getBuild(): number

[Method] Returns the build component value

Returns

number

Number build

optional public getMajor(): number

[Method] Returns the major component value

Returns

number

Number major

optional public getMinor(): number

[Method] Returns the minor component value

Returns

number

Number minor

optional public getPatch(): number

[Method] Returns the patch component value

Returns

number

Number patch

optional public getRelease(): number

[Method] Returns the release component value

Returns

number

Number release

optional public getShortVersion(): string

[Method] Returns shortVersion version without dots and release

Returns

string

String

optional public getVersion(packageName?: string): IVersion

[Method] Get the version number of the supplied package name will return the last registered version last Ext setVersion c

Parameters

  • packageName?: string optional

    String The package name, for example: 'core', 'touch', 'extjs'.

Returns

IVersion

Ext.Version The version.

optional public gt(target?: any): boolean

[Method] Convenient alias to isGreaterThan

Parameters

  • target?: any optional

    String/Number

Returns

boolean

Boolean

optional public gtEq(target?: any): boolean

[Method] Convenient alias to isGreaterThanOrEqual

Parameters

  • target?: any optional

    String/Number

Returns

boolean

Boolean

optional public isGreaterThan(target?: any): boolean

[Method] Returns whether this version if greater than the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version if greater than the target, false otherwise.

optional public isGreaterThanOrEqual(target?: any): boolean

[Method] Returns whether this version if greater than or equal to the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version if greater than or equal to the target, false otherwise.

optional public isLessThan(target?: any): boolean

[Method] Returns whether this version if smaller than the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version if smaller than the target, false otherwise.

optional public isLessThanOrEqual(target?: any): boolean

[Method] Returns whether this version if less than or equal to the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version if less than or equal to the target, false otherwise.

optional public lt(target?: any): boolean

[Method] Convenient alias to isLessThan

Parameters

  • target?: any optional

    String/Number

Returns

boolean

Boolean

optional public ltEq(target?: any): boolean

[Method] Convenient alias to isLessThanOrEqual

Parameters

  • target?: any optional

    String/Number

Returns

boolean

Boolean

optional public match(target?: any): boolean

[Method] Returns whether this version matches the supplied argument

Parameters

  • target?: any optional

    String/Number The version to compare with.

Returns

boolean

Boolean true if this version matches the target, false otherwise.

optional public setVersion(packageName?: string, version?: any): any

[Method] Set version number for the given package name

Parameters

  • packageName?: string optional

    String The package name, for example: 'core', 'touch', 'extjs'.

  • version?: any optional

    String/Ext.Version The version, for example: '1.2.3alpha', '2.4.0-dev'.

Returns

any

any

optional public toArray(): Array<number>

[Method] Returns this format major minor patch build release

Returns

Array<number>

Number[]

optional public toNumber(value?: any): number

[Method]

Parameters

  • value?: any optional

    Object

Returns

number

Number