mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Added def types for product
This commit is contained in:
parent
f2c79d07a7
commit
779b4738ce
17
framework/commerce/types/product.ts
Normal file
17
framework/commerce/types/product.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user