Skip to content

Commit

Permalink
Products: Update type to the result of the new api param
Browse files Browse the repository at this point in the history
  • Loading branch information
jarstelfox committed Jul 6, 2023
1 parent ee44200 commit 7934742
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,30 @@ export type Problem = {

export type ApiSolutionSection = Section & {
guides: Guide[];
products: string[];
products: SectionProduct[];
};

export type SectionProduct = {
image: string;
thumbnailUrl: string;
url: string;
title: string;
price: {
amount: number;
currencyCode: string;
};
reviews: {
rating: number;
count: number;
};
};

export type SolutionSection = Omit<
ApiSolutionSection,
'guides' | 'products'
> & {
guides: Guide[];
products: Array<Product>;
products: Array<SectionProduct>;
};

export type TroubleshootingApiData = {
Expand Down

0 comments on commit 7934742

Please sign in to comment.