mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 20:45:08 +00:00
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
/**
|
|
* Derived from Angular's version class
|
|
*/
|
|
export class Version
|
|
{
|
|
public readonly full: string;
|
|
public readonly major: string;
|
|
public readonly minor: string;
|
|
public readonly patch: string;
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
constructor(public version: string)
|
|
{
|
|
this.full = version;
|
|
this.major = version.split('.')[0];
|
|
this.minor = version.split('.')[1];
|
|
this.patch = version.split('.').slice(2).join('.');
|
|
}
|
|
}
|