Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/json-schema-bin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ fn main() {
}
}

std::fs::rename(&tmp_path, path).unwrap()
std::fs::copy(&tmp_path, path).unwrap();
}
36 changes: 7 additions & 29 deletions frontend/src/gen-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,15 @@ export type Action =
PlayCardsWithHint: [Card[], TrickUnit[]];
};
export type Number = string;
export type FriendSelectionPolicy =
| "Unrestricted"
| "TrumpsIncluded"
| "HighestCardNotAllowed"
| "PointCardNotAllowed";
export type FriendSelectionPolicy = "Unrestricted" | "TrumpsIncluded" | "HighestCardNotAllowed" | "PointCardNotAllowed";
export type MultipleJoinPolicy = "Unrestricted" | "NoDoubleJoin";
export type FirstLandlordSelectionPolicy = "ByWinningBid" | "ByFirstBid";
export type BidPolicy =
| "JokerOrHigherSuit"
| "JokerOrGreaterLength"
| "GreaterLength";
export type BidPolicy = "JokerOrHigherSuit" | "JokerOrGreaterLength" | "GreaterLength";
export type BidReinforcementPolicy =
| "ReinforceWhileWinning"
| "OverturnOrReinforceWhileWinning"
| "ReinforceWhileEquivalent";
export type JokerBidPolicy =
| "BothTwoOrMore"
| "BothNumDecks"
| "LJNumDecksHJNumDecksLessOne"
| "Disabled";
export type JokerBidPolicy = "BothTwoOrMore" | "BothNumDecks" | "LJNumDecksHJNumDecksLessOne" | "Disabled";
export type MaxRank = string;
export type GameModeSettings =
| "Tractor"
Expand All @@ -189,13 +178,8 @@ export type GameModeSettings =
[k: string]: unknown;
};
};
export type AdvancementPolicy =
| "Unrestricted"
| "FullyUnrestricted"
| "DefendPoints";
export type BonusLevelPolicy =
| "NoBonusLevel"
| "BonusLevelForSmallerLandlordTeam";
export type AdvancementPolicy = "Unrestricted" | "FullyUnrestricted" | "DefendPoints";
export type BonusLevelPolicy = "NoBonusLevel" | "BonusLevelForSmallerLandlordTeam";
export type KittyPenalty = "Times" | "Power";
export type KittyBidPolicy = "FirstCard" | "FirstCardOfLevelOrHighest";
export type TrickDrawPolicy =
Expand Down Expand Up @@ -242,13 +226,7 @@ export type Trump =
};
};
export type Suit = string;
export type EffectiveSuit =
| "Unknown"
| "Clubs"
| "Diamonds"
| "Spades"
| "Hearts"
| "Trump";
export type EffectiveSuit = "Unknown" | "Clubs" | "Diamonds" | "Spades" | "Hearts" | "Trump";
export type GameMessage =
| {
State: {
Expand Down Expand Up @@ -725,7 +703,7 @@ export interface Trick {
*
* TODO: remove default deserialization attribute in a few days.
*/
played_card_mappings?: Array<TrickUnit[] | null>;
played_card_mappings?: (TrickUnit[] | null)[];
played_cards: PlayedCards[];
player_queue: number[];
trick_format?: TrickFormat | null;
Expand Down
Loading
Loading