Skip to content

Commit

Permalink
fix: content metadata type
Browse files Browse the repository at this point in the history
This fixes `ContentMetadata` type to be more flexible.
  • Loading branch information
Bruno Alexandre Oliveira authored and Bruno Alexandre Oliveira committed Sep 6, 2023
1 parent e6cc4ec commit 514531f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/client/src/contents/types/contents.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,7 @@ export type ComponentType = {
};

export type ContentMetadata = {
custom?: {
id: string;
gender: string;
brand: string;
priceType: string;
category: string;
eventDate?: string;
};
custom?: Record<string, string | number | null>;
};

export type ContentEntry<T = ComponentType[]> = {
Expand Down

0 comments on commit 514531f

Please sign in to comment.