Skip to content

Commit

Permalink
typing: refine const types
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed May 8, 2020
1 parent 22e1956 commit 091ded3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/constants/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export const ASSETS = {
MOLE_WALK_DOWN: 'mole-walk-down',
MONSTER_DEATH: 'monster-death',
},
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/events.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const EVENTS = {
UPDATE_HP: 'update-hp',
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/map-content-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const MAP_CONTENT_KEYS = {
MONSTERS: 'monsters',
ZONES: 'zones',
},
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const MAPS = {
file: 'second-map.json',
key: 'second-level',
},
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/monsters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const MONSTERS = {
mole: 'mole',
treant: 'treant',
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export const REGISTRY_KEYS = {
PLAYER: {
HP: 'playerHp',
},
};
} as const;
2 changes: 1 addition & 1 deletion src/constants/scenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export const SCENES = {
HUD: 'Hud',
FIRST_LEVEL: 'FirstLevel',
SECOND_LEVEL: 'SecondLevel',
};
} as const;

0 comments on commit 091ded3

Please sign in to comment.