File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
refactor/src/utils/functions Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
5
5
import { RootObject , Product } from '@/utils/context/CartProvider' ;
6
6
7
7
import { ChangeEvent } from 'react' ;
8
+ import { IVariationNodes } from '@/components/Product/AddToCart.component' ;
8
9
9
10
/* Interface for products*/
10
11
@@ -19,7 +20,7 @@ export interface IImage {
19
20
20
21
export interface IGalleryImages {
21
22
__typename : string ;
22
- nodes : any [ ] ;
23
+ nodes : IImage [ ] ;
23
24
}
24
25
25
26
interface IProductNode {
@@ -47,7 +48,7 @@ export interface IProductRootObject {
47
48
__typename : string ;
48
49
key : string ;
49
50
product : IProduct ;
50
- variation ?: any ;
51
+ variation ?: IVariationNodes ;
51
52
quantity : number ;
52
53
total : string ;
53
54
subtotal : string ;
You can’t perform that action at this time.
0 commit comments