mirror of
https://github.com/vercel/commerce.git
synced 2025-05-11 12:17:51 +00:00
payload types
This commit is contained in:
parent
04a2c2b29e
commit
5c41217ca0
@ -282,10 +282,10 @@ const reshapeCategory = (category: PayloadCategory): Collection => {
|
||||
return {
|
||||
handle: category.id,
|
||||
title: category.title,
|
||||
description: category.title,
|
||||
description: category.description!,
|
||||
seo: {
|
||||
title: category.title,
|
||||
description: category.title
|
||||
description: category.description!
|
||||
},
|
||||
path: `/search/${category.id}`,
|
||||
updatedAt: category.updatedAt
|
||||
|
@ -68,6 +68,7 @@ export interface Post {
|
||||
export interface Category {
|
||||
id: string;
|
||||
title: string;
|
||||
description?: string | null;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
@ -175,7 +176,6 @@ export interface Product {
|
||||
*/
|
||||
export interface Cart {
|
||||
id: string;
|
||||
name: string;
|
||||
totalAmount?: number | null;
|
||||
user?: (string | null) | User;
|
||||
lines?:
|
||||
|
Loading…
x
Reference in New Issue
Block a user