From 779b4738ce28565996698f6b2d47888c4e3387c7 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Fri, 21 May 2021 19:01:00 -0500 Subject: [PATCH] Added def types for product --- framework/commerce/types/product.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 framework/commerce/types/product.ts diff --git a/framework/commerce/types/product.ts b/framework/commerce/types/product.ts new file mode 100644 index 000000000..b5047564b --- /dev/null +++ b/framework/commerce/types/product.ts @@ -0,0 +1,17 @@ +// TODO: define this type +export type Product = any + +export type ProductTypes = { + product: Product +} + +export type ProductSchema = { + endpoint: { + options: {} + handlers: { + getProducts: { + data: { product: T['product'] } | null + } + } + } +}