jl-sprt-core 1.1.7 → 1.1.8
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.
- package/dist/Match/scores.d.ts +6 -22
- package/dist/Match/scores.js +0 -1
- package/dist/Match/scores.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/Match/scores.d.ts
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Cada
|
|
2
|
+
* Interfaz base para el marcador de un partido.
|
|
3
|
+
* Cada deporte extiende esta interfaz definiendo sus propiedades específicas
|
|
4
|
+
* y su discriminador 'type'.
|
|
4
5
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
type:
|
|
7
|
-
setsWon: number;
|
|
8
|
-
setPoints: number[];
|
|
9
|
-
extraSetPoints: number;
|
|
6
|
+
export interface IMatchScore<T extends string = string> {
|
|
7
|
+
readonly type: T;
|
|
10
8
|
}
|
|
11
|
-
export
|
|
12
|
-
type: 'football';
|
|
13
|
-
goals: number;
|
|
14
|
-
penalties: number;
|
|
15
|
-
}
|
|
16
|
-
export interface IAmericanFootballScore {
|
|
17
|
-
type: 'american-football';
|
|
18
|
-
totalPoints: number;
|
|
19
|
-
touchdowns: number;
|
|
20
|
-
fieldGoals: number;
|
|
21
|
-
extraPoints: number;
|
|
22
|
-
twoPointConversions: number;
|
|
23
|
-
safeties: number;
|
|
24
|
-
}
|
|
25
|
-
export type TMatchScore = IVolleyballScore | IFootballScore | IAmericanFootballScore;
|
|
9
|
+
export type TMatchScore = IMatchScore<string>;
|
package/dist/Match/scores.js
CHANGED
package/dist/Match/scores.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scores.js","sourceRoot":"","sources":["../../src/Match/scores.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scores.js","sourceRoot":"","sources":["../../src/Match/scores.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { A_TeamTableItem } from './profiles/A_TeamTableItem';
|
|
|
10
10
|
export type { IMatchCreationInfo, TypeMatchState } from './Match/A_Match';
|
|
11
11
|
export type { IResultInfo, IWinnerInfo, TypeTotalScore } from './Match/A_Result';
|
|
12
12
|
export type { ISerieCreationInfo, MatchContext, MatchContextProvider } from './Match/A_Serie';
|
|
13
|
-
export type {
|
|
13
|
+
export type { IMatchScore, TMatchScore } from './Match/scores';
|
|
14
14
|
export type { IPersonData } from './Person';
|
|
15
15
|
export type { ITeamCreator, ITeamOwner } from './A_Team';
|
|
16
16
|
export type { ISportProfile, AnySportProfile } from './profiles/ISportProfile';
|