Skip to content

Commit

Permalink
fix types errors
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadshakkeerp committed Apr 17, 2024
1 parent abe1691 commit dfee48e
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/assets/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ type SubItem = {
};

export type SubCategory = {

category: string;
title: string;
subItems: SubItem[];
Expand All @@ -16,22 +15,22 @@ type HeaderCategory = {
subCategories: SubCategory[];
};

type headerCategoriesProps = HeaderCategory[]
type headerCategoriesProps = HeaderCategory[];

type RowProductsProps = {
id: number ;
id: number;
title: string;
img: string;
price:number,
quantity:number,
price: number;
quantity: number;
offerAvailable: boolean;
}[];
type ProductDetailsProps = {
id: number ;
id: number;
title: string;
thumbImg: string;
price:number,
quantity:number,
img: string;
price: number;
quantity: number;
offerAvailable: boolean;
};
interface FooterDataItem {
Expand All @@ -43,12 +42,10 @@ interface FooterDataProps {
[section: string]: FooterDataItem;
}



export type {
RowProductsProps,
ProductDetailsProps,
FooterDataProps,
headerCategoriesProps,
HeaderCategory
HeaderCategory,
};

0 comments on commit dfee48e

Please sign in to comment.