Define Product type
This commit is contained in:
Vendored
+18
@@ -14,4 +14,22 @@ declare global {
|
||||
content: string
|
||||
}
|
||||
|
||||
type Product = {
|
||||
"id": number,
|
||||
"price": number,
|
||||
"name": string,
|
||||
"description": string,
|
||||
"currency": string,
|
||||
"image": string,
|
||||
"rating": number,
|
||||
"view": number,
|
||||
"sell": number,
|
||||
"in_stock": number,
|
||||
"discount": number,
|
||||
"slug": string,
|
||||
"meta_description": string | null,
|
||||
"meta_keywords": null,
|
||||
"meta_rating": number | null
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user