Skip to content

Commit ff6ec01

Browse files
chore(develop): sync types to dmgincs/nestjs-api
1 parent ef23dd5 commit ff6ec01

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/common/GetAllActivityTiersResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class GetAllActivityTiersTier {
1111
color: string;
1212

1313
/** The benefits associated with this activity tier */
14-
benefits: string[];
14+
benefits: readonly string[];
1515
}
1616

1717
export class GetAllActivityTiersResponseDto {

src/constants/ActivityTiers.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ export interface ActivityTierData {
2020
name: ActivityTiers;
2121
xp_needed: number;
2222
color: string;
23-
benefits: string[];
23+
benefits: readonly string[];
2424
}
2525

26-
export const ACTIVITY_TIERS_DATA: Record<ActivityTiers, ActivityTierData> = {
26+
// eslint-disable-next-line spellcheck/spell-checker
27+
export const ACTIVITY_TIERS_DATA: Readonly<Record<ActivityTiers, ActivityTierData>> = {
2728
[ActivityTiers.GIGACHAD_GAMER]: {
2829
name: ActivityTiers.GIGACHAD_GAMER,
2930
xp_needed: 2000,
@@ -64,4 +65,4 @@ export const ACTIVITY_TIERS_DATA: Record<ActivityTiers, ActivityTierData> = {
6465
color: '#B7B7B7',
6566
benefits: []
6667
}
67-
};
68+
} as const;

0 commit comments

Comments
 (0)