mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-05 09:53:12 +00:00
style: format code with Prettier
This commit fixes the style issues introduced in 1fdb6ed
according to the output
from Prettier.
Details: None
This commit is contained in:
parent
1fdb6ed2f4
commit
0592a217e9
2 changed files with 8 additions and 8 deletions
|
@ -11,10 +11,10 @@ export async function getPopularToday(): Promise<Item[]> {
|
|||
if (data?.item) {
|
||||
return data?.item;
|
||||
} else {
|
||||
return Promise.reject(new Error("Failed to fetch popular today"))
|
||||
return Promise.reject(new Error("Failed to fetch popular today"));
|
||||
}
|
||||
} else {
|
||||
return Promise.reject(error)
|
||||
return Promise.reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,14 +14,14 @@ export type Item = {
|
|||
description: string;
|
||||
labels?: Labels[];
|
||||
images?: string[];
|
||||
}
|
||||
};
|
||||
|
||||
export type CartItem = {
|
||||
amount: number;
|
||||
data: Item;
|
||||
}
|
||||
};
|
||||
|
||||
export type JSONResponse = {
|
||||
data?: { item: Item[] }
|
||||
error?: string,
|
||||
}
|
||||
data?: { item: Item[] };
|
||||
error?: string;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue