Skip to content

Commit

Permalink
blocks form data types correction
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Jun 21, 2024
1 parent 38eba4c commit 5276571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/types/src/blocks/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { Location, History } from 'history';
export interface BlocksFormData {
'@type': AvailableBlocks;
variation?: string;
[x: string]: unknown;
}

export interface BlockViewProps {
Expand Down
6 changes: 2 additions & 4 deletions packages/types/src/content/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Expanders, ContainedItem, Image, RelatedItem } from './common';
import type { BlocksFormData } from '../blocks';

export interface Content {
'@components': Expanders;
Expand All @@ -12,10 +13,7 @@ export interface Content {
token: boolean;
};
blocks: {
[k in string]: {
'@id': string;
'@type': string;
} & Record<string, unknown>;
[k in string]: BlocksFormData;
};
blocks_layout: {
items: string[];
Expand Down

0 comments on commit 5276571

Please sign in to comment.