From e602ad755abd65c8227ca92584b961c68fdc1f91 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Mon, 13 Jan 2025 21:07:45 +0330 Subject: [PATCH] Define Product type --- frontend/types/global.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/types/global.d.ts b/frontend/types/global.d.ts index f0df3d0..ac13093 100644 --- a/frontend/types/global.d.ts +++ b/frontend/types/global.d.ts @@ -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 + } + }