Skip to content

Commit 861f6ff

Browse files
committed
Typescript improvements
1 parent acf69bc commit 861f6ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

refactor/src/utils/functions/functions.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
55
import { RootObject, Product } from '@/utils/context/CartProvider';
66

77
import { ChangeEvent } from 'react';
8+
import { IVariationNodes } from '@/components/Product/AddToCart.component';
89

910
/* Interface for products*/
1011

@@ -19,7 +20,7 @@ export interface IImage {
1920

2021
export interface IGalleryImages {
2122
__typename: string;
22-
nodes: any[];
23+
nodes: IImage[];
2324
}
2425

2526
interface IProductNode {
@@ -47,7 +48,7 @@ export interface IProductRootObject {
4748
__typename: string;
4849
key: string;
4950
product: IProduct;
50-
variation?: any;
51+
variation?: IVariationNodes;
5152
quantity: number;
5253
total: string;
5354
subtotal: string;

0 commit comments

Comments
 (0)