Merge pull request #19 from Fluffy-Bean/deepsource-transform-c7cab386

style: format code with Prettier
This commit is contained in:
Michał 2024-05-13 12:12:58 +01:00 committed by GitHub
commit df0563cdf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -11,10 +11,10 @@ export async function getPopularToday(): Promise<Item[]> {
if (data?.item) { if (data?.item) {
return data?.item; return data?.item;
} else { } else {
return Promise.reject(new Error("Failed to fetch popular today")) return Promise.reject(new Error("Failed to fetch popular today"));
} }
} else { } else {
return Promise.reject(error) return Promise.reject(error);
} }
} }

View file

@ -14,14 +14,14 @@ export type Item = {
description: string; description: string;
labels?: Labels[]; labels?: Labels[];
images?: string[]; images?: string[];
} };
export type CartItem = { export type CartItem = {
amount: number; amount: number;
data: Item; data: Item;
} };
export type JSONResponse = { export type JSONResponse = {
data?: { item: Item[] } data?: { item: Item[] };
error?: string, error?: string;
} };