summaryrefslogtreecommitdiff
path: root/frontend/src/schemas
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-05-28 23:39:12 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-05-28 23:39:12 +0200
commitbb2ced764938c4aa6b4e003b7dedb26c8a096b97 (patch)
tree7adf701e85f724b85fe042ef9ae00ff52e3c5213 /frontend/src/schemas
parentUpgrade react-scripts (diff)
downloadseven-wonders-bb2ced764938c4aa6b4e003b7dedb26c8a096b97.tar.gz
seven-wonders-bb2ced764938c4aa6b4e003b7dedb26c8a096b97.tar.bz2
seven-wonders-bb2ced764938c4aa6b4e003b7dedb26c8a096b97.zip
Initial type checking work with flowtype
Diffstat (limited to 'frontend/src/schemas')
-rw-r--r--frontend/src/schemas/games.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/frontend/src/schemas/games.js b/frontend/src/schemas/games.js
index 68d14fb4..bcae0235 100644
--- a/frontend/src/schemas/games.js
+++ b/frontend/src/schemas/games.js
@@ -1,12 +1,6 @@
import { schema } from 'normalizr';
-const player = new schema.Entity(
- 'players',
- {},
- {
- idAttribute: 'username',
- }
-);
+const player = new schema.Entity('players', {}, { idAttribute: 'username' });
export const game = new schema.Entity('games', {
players: [player],
bgstack15