front-back-poker-types 5.0.221 → 5.0.222

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.
@@ -32,12 +32,13 @@ export type Card = {
32
32
  rank: CardRank;
33
33
  };
34
34
  export type Cards = Card[];
35
+ export type UserId = number;
35
36
  export type Winners = {
36
- userId: number;
37
+ userId: UserId;
37
38
  chipsCount: number;
38
39
  }[][];
39
40
  export type GameStartUser = {
40
- userId: number;
41
+ id: UserId;
41
42
  /**
42
43
  * Оставшееся время резерва места
43
44
  */
@@ -55,7 +56,7 @@ export type GameStartUser = {
55
56
  export type User = {
56
57
  avatarId: number;
57
58
  nickname: string;
58
- id: number;
59
+ id: UserId;
59
60
  cards?: Cards;
60
61
  chipsCount: number;
61
62
  place: number;
@@ -144,7 +145,6 @@ export type TournamentData = {
144
145
  */
145
146
  topUsers: Record<UserId, number> | undefined;
146
147
  };
147
- export type UserId = User['id'];
148
148
  type Showdown = Record<UserId, Cards>;
149
149
  export type ActionMessageContentToFront = {
150
150
  userId: UserId;
@@ -32,12 +32,13 @@ export type Card = {
32
32
  rank: CardRank;
33
33
  };
34
34
  export type Cards = Card[];
35
+ export type UserId = number;
35
36
  export type Winners = {
36
- userId: number;
37
+ userId: UserId;
37
38
  chipsCount: number;
38
39
  }[][];
39
40
  export type GameStartUser = {
40
- userId: number;
41
+ id: UserId;
41
42
  /**
42
43
  * Оставшееся время резерва места
43
44
  */
@@ -55,7 +56,7 @@ export type GameStartUser = {
55
56
  export type User = {
56
57
  avatarId: number;
57
58
  nickname: string;
58
- id: number;
59
+ id: UserId;
59
60
  cards?: Cards;
60
61
  chipsCount: number;
61
62
  place: number;
@@ -144,7 +145,6 @@ export type TournamentData = {
144
145
  */
145
146
  topUsers: Record<UserId, number> | undefined;
146
147
  };
147
- export type UserId = User['id'];
148
148
  type Showdown = Record<UserId, Cards>;
149
149
  export type ActionMessageContentToFront = {
150
150
  userId: UserId;
package/dist/index.d.ts CHANGED
@@ -621,12 +621,13 @@ type Card = {
621
621
  rank: CardRank;
622
622
  };
623
623
  type Cards = Card[];
624
+ type UserId = number;
624
625
  type Winners = {
625
- userId: number;
626
+ userId: UserId;
626
627
  chipsCount: number;
627
628
  }[][];
628
629
  type GameStartUser = {
629
- userId: number;
630
+ id: UserId;
630
631
  /**
631
632
  * Оставшееся время резерва места
632
633
  */
@@ -644,7 +645,7 @@ type GameStartUser = {
644
645
  type User = {
645
646
  avatarId: number;
646
647
  nickname: string;
647
- id: number;
648
+ id: UserId;
648
649
  cards?: Cards;
649
650
  chipsCount: number;
650
651
  place: number;
@@ -733,7 +734,6 @@ type TournamentData = {
733
734
  */
734
735
  topUsers: Record<UserId, number> | undefined;
735
736
  };
736
- type UserId = User['id'];
737
737
  type Showdown = Record<UserId, Cards>;
738
738
  type ActionMessageContentToFront = {
739
739
  userId: UserId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "front-back-poker-types",
3
- "version": "5.0.221",
3
+ "version": "5.0.222",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [