Added def types for product

This commit is contained in:
Luis Alvarez 2021-05-21 19:01:00 -05:00
parent f2c79d07a7
commit 779b4738ce

View File

@ -0,0 +1,17 @@
// TODO: define this type
export type Product = any
export type ProductTypes = {
product: Product
}
export type ProductSchema<T extends ProductTypes = ProductTypes> = {
endpoint: {
options: {}
handlers: {
getProducts: {
data: { product: T['product'] } | null
}
}
}
}