Skip to content

Commit

Permalink
feat(common-general): add movedAt to game model
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodigioacchino committed Feb 3, 2021
1 parent 83e8390 commit 0473a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export interface Game<T, F> extends CreatedAt<T, F> {
cards: { [key: string]: CardState } | null;
boardDimensions: { x: number, y: number } | null;
review: boolean;
movedAt: T | F;
}

export type RTDBGame<T, F> = Omit<Game<T, F>, 'rtdbInstance' | 'cards'>;
export type RTDBGame<T, F> = Omit<Game<T, F>, 'rtdbInstance' | 'cards' | 'movedAt'>;

export interface CardState {
parent: 'board' | 'panel';
Expand Down

0 comments on commit 0473a55

Please sign in to comment.