UNPKG

1.08 kBJavaScriptView Raw
1/**
2 * *
3 */
4export var Version = (function () {
5 /**
6 * @param {?} full
7 */
8 function Version(full) {
9 this.full = full;
10 }
11 Object.defineProperty(Version.prototype, "major", {
12 /**
13 * @return {?}
14 */
15 get: function () { return this.full.split('.')[0]; },
16 enumerable: true,
17 configurable: true
18 });
19 Object.defineProperty(Version.prototype, "minor", {
20 /**
21 * @return {?}
22 */
23 get: function () { return this.full.split('.')[1]; },
24 enumerable: true,
25 configurable: true
26 });
27 Object.defineProperty(Version.prototype, "patch", {
28 /**
29 * @return {?}
30 */
31 get: function () { return this.full.split('.').slice(2).join('.'); },
32 enumerable: true,
33 configurable: true
34 });
35 return Version;
36}());
37function Version_tsickle_Closure_declarations() {
38 /** @type {?} */
39 Version.prototype.full;
40}
41/**
42 * @stable
43 */
44export var /** @type {?} */ VERSION = new Version('2.4.0');
45//# sourceMappingURL=version.js.map
\No newline at end of file