Skip to content

Commit dbaffbc

Browse files
committed
Add achievements to cookingDataType and define achievementType
Introduces an optional achievements field to cookingDataType and defines the achievementType interface to represent achievement details. Also adds a totalRecipes field to cookingDataType.
1 parent d580188 commit dbaffbc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/types/displayDataTypes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ export type cookingDataType = {
2929
knownRecipes: number;
3030
alreadyCookedRecipes: number;
3131
cookedItems: generalFormatedItemType[];
32+
totalRecipes: number;
33+
achievements?: achievementType[];
34+
}
35+
export type achievementType = {
36+
done: boolean,
37+
goal: number,
38+
image: string,
39+
name: string,
40+
description: string,
41+
hoverDesc: string,
3242
}
3343

3444
export type generalFormatedItemType = {

0 commit comments

Comments
 (0)