@sports-alliance/sports-lib 7.0.4 → 7.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataArray extends DataBare<string[]> {
2
+ export declare abstract class DataArray extends DataBare {
3
+ protected value: string[];
3
4
  constructor(value: string[]);
4
- getValue(formatForDataType?: string): string[];
5
+ getValue(): string[];
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -7,7 +7,7 @@ class DataArray extends data_bare_1.DataBare {
7
7
  super(value);
8
8
  this.value = value;
9
9
  }
10
- getValue(formatForDataType) {
10
+ getValue() {
11
11
  return this.value;
12
12
  }
13
13
  isValueTypeValid(value) {
@@ -1,5 +1,4 @@
1
1
  import { Data } from './data';
2
- import { DataPositionInterface } from './data.position.interface';
3
- export declare abstract class DataBare<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> extends Data<T> {
2
+ export declare abstract class DataBare extends Data {
4
3
  static unit: string;
5
4
  }
@@ -1,15 +1,15 @@
1
1
  import { DataInterface, UnitSystem } from './data.interface';
2
2
  import { DataJSONInterface } from './data.json.interface';
3
3
  import { DataPositionInterface } from './data.position.interface';
4
- export declare abstract class Data<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> implements DataInterface {
4
+ export declare abstract class Data implements DataInterface {
5
5
  static type: string;
6
6
  static unit: string;
7
7
  static displayType?: string;
8
8
  static unitSystem: UnitSystem;
9
- protected value: T;
10
- protected constructor(value: T);
11
- setValue(value: number | string | boolean | string[] | DataPositionInterface): this;
12
- getValue(formatForDataType?: string): T;
9
+ protected value: number | string | boolean | string[] | DataPositionInterface;
10
+ protected constructor(value: string | number | boolean | string[] | DataPositionInterface);
11
+ setValue(value: string | number | boolean | string[] | DataPositionInterface): this;
12
+ getValue(formatForDataType?: string): string | number | boolean | string[] | DataPositionInterface;
13
13
  getDisplayValue(): number | string | string[];
14
14
  getType(): string;
15
15
  getUnit(): string;
@@ -1,5 +1,6 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataNumber extends DataBare<number> {
2
+ export declare abstract class DataNumber extends DataBare {
3
+ protected value: number;
3
4
  constructor(value: number);
4
5
  getValue(formatForDataType?: string): number;
5
6
  isValueTypeValid(value: any): boolean;
@@ -1,9 +1,10 @@
1
1
  import { DataBare } from './data.bare';
2
2
  import { DataPositionInterface } from './data.position.interface';
3
- export declare class DataPosition extends DataBare<DataPositionInterface> {
3
+ export declare class DataPosition extends DataBare {
4
4
  static type: string;
5
+ protected value: DataPositionInterface;
5
6
  constructor(value: DataPositionInterface);
6
- getValue(formatForDataType?: string): DataPositionInterface;
7
+ getValue(): DataPositionInterface;
7
8
  getDisplayValue(): string;
8
9
  isValueTypeValid(value: any): boolean;
9
10
  }
@@ -8,7 +8,7 @@ class DataPosition extends data_bare_1.DataBare {
8
8
  super(value);
9
9
  this.value = value;
10
10
  }
11
- getValue(formatForDataType) {
11
+ getValue() {
12
12
  return this.value;
13
13
  }
14
14
  getDisplayValue() {
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataString extends DataBare<string> {
2
+ export declare abstract class DataString extends DataBare {
3
+ protected value: string;
3
4
  constructor(value: string);
4
- getValue(formatForDataType?: string): string;
5
+ getValue(): string;
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -7,7 +7,7 @@ class DataString extends data_bare_1.DataBare {
7
7
  super(value);
8
8
  this.value = value;
9
9
  }
10
- getValue(formatForDataType) {
10
+ getValue() {
11
11
  return this.value;
12
12
  }
13
13
  isValueTypeValid(value) {
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataArray extends DataBare<string[]> {
2
+ export declare abstract class DataArray extends DataBare {
3
+ protected value: string[];
3
4
  constructor(value: string[]);
4
- getValue(formatForDataType?: string): string[];
5
+ getValue(): string[];
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -4,7 +4,7 @@ export class DataArray extends DataBare {
4
4
  super(value);
5
5
  this.value = value;
6
6
  }
7
- getValue(formatForDataType) {
7
+ getValue() {
8
8
  return this.value;
9
9
  }
10
10
  isValueTypeValid(value) {
@@ -1,5 +1,4 @@
1
1
  import { Data } from './data';
2
- import { DataPositionInterface } from './data.position.interface';
3
- export declare abstract class DataBare<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> extends Data<T> {
2
+ export declare abstract class DataBare extends Data {
4
3
  static unit: string;
5
4
  }
@@ -1,15 +1,15 @@
1
1
  import { DataInterface, UnitSystem } from './data.interface';
2
2
  import { DataJSONInterface } from './data.json.interface';
3
3
  import { DataPositionInterface } from './data.position.interface';
4
- export declare abstract class Data<T extends number | string | boolean | string[] | DataPositionInterface = number | string | boolean | string[] | DataPositionInterface> implements DataInterface {
4
+ export declare abstract class Data implements DataInterface {
5
5
  static type: string;
6
6
  static unit: string;
7
7
  static displayType?: string;
8
8
  static unitSystem: UnitSystem;
9
- protected value: T;
10
- protected constructor(value: T);
11
- setValue(value: number | string | boolean | string[] | DataPositionInterface): this;
12
- getValue(formatForDataType?: string): T;
9
+ protected value: number | string | boolean | string[] | DataPositionInterface;
10
+ protected constructor(value: string | number | boolean | string[] | DataPositionInterface);
11
+ setValue(value: string | number | boolean | string[] | DataPositionInterface): this;
12
+ getValue(formatForDataType?: string): string | number | boolean | string[] | DataPositionInterface;
13
13
  getDisplayValue(): number | string | string[];
14
14
  getType(): string;
15
15
  getUnit(): string;
@@ -1,5 +1,6 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataNumber extends DataBare<number> {
2
+ export declare abstract class DataNumber extends DataBare {
3
+ protected value: number;
3
4
  constructor(value: number);
4
5
  getValue(formatForDataType?: string): number;
5
6
  isValueTypeValid(value: any): boolean;
@@ -1,9 +1,10 @@
1
1
  import { DataBare } from './data.bare';
2
2
  import { DataPositionInterface } from './data.position.interface';
3
- export declare class DataPosition extends DataBare<DataPositionInterface> {
3
+ export declare class DataPosition extends DataBare {
4
4
  static type: string;
5
+ protected value: DataPositionInterface;
5
6
  constructor(value: DataPositionInterface);
6
- getValue(formatForDataType?: string): DataPositionInterface;
7
+ getValue(): DataPositionInterface;
7
8
  getDisplayValue(): string;
8
9
  isValueTypeValid(value: any): boolean;
9
10
  }
@@ -5,7 +5,7 @@ export class DataPosition extends DataBare {
5
5
  super(value);
6
6
  this.value = value;
7
7
  }
8
- getValue(formatForDataType) {
8
+ getValue() {
9
9
  return this.value;
10
10
  }
11
11
  getDisplayValue() {
@@ -1,6 +1,7 @@
1
1
  import { DataBare } from './data.bare';
2
- export declare abstract class DataString extends DataBare<string> {
2
+ export declare abstract class DataString extends DataBare {
3
+ protected value: string;
3
4
  constructor(value: string);
4
- getValue(formatForDataType?: string): string;
5
+ getValue(): string;
5
6
  isValueTypeValid(value: any): boolean;
6
7
  }
@@ -4,7 +4,7 @@ export class DataString extends DataBare {
4
4
  super(value);
5
5
  this.value = value;
6
6
  }
7
- getValue(formatForDataType) {
7
+ getValue() {
8
8
  return this.value;
9
9
  }
10
10
  isValueTypeValid(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sports-alliance/sports-lib",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "description": "A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc",
5
5
  "keywords": [
6
6
  "gpx",