Skip to content

Commit 3d709d0

Browse files
committed
Tweak to exercise beginning
1 parent fbc98e8 commit 3d709d0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

exercises/01-apiMapping.exercise.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
/**
2-
* 💡 In this example, our backend is using a slightly
3-
* different enum to us. So we've build a map to be able
4-
* to easily access the backend enum (in SCREAMING_SNAKE_CASE)
5-
* to frontend (in camelCase)
2+
* 🧑‍💻 We're building a scheduling app for a large HR company.
3+
* We built our backends and frontends separately, but there
4+
* was a bit of miscommunication about the enums we would use
5+
* to represent different bookings. The backend is now using
6+
* SCREAMING_SNAKE_CASE, but we're using camelCase.
7+
*
8+
* So we've made a map to convert from the backend version of
9+
* ProgramMode - GROUP, ANNOUNCEMENT etc - to the frontend
10+
* version - group, announcement etc.
611
*/
712

813
export const programModeEnumMap = {

0 commit comments

Comments
 (0)