This document outlines the necessary changes to separate nested modular blocks into distinct interfaces. This update will affect how modular blocks are structured and used throughout the codebase.
export interface Test {
/** Version */
_version?: 2;
/** Title */
title: string;
/** Modular Blocks */
modular_blocks?: {
test: {
/** Multi Line Textbox */
multi_line?: string;
/** Rich Text Editor */
rich_text_editor?: string;
/** Modular Blocks1 */
modular_blocks1?: {
test1: {
/** Multi Line Textbox */
multi_line?: string;
};
}[];
};
}[];
}
export interface Test {
/** Version */
_version: 2;
/** Title */
title: string;
/** Modular Blocks */
modular_blocks?: ModularBlocks[];
}
export interface ModularBlocks {
/** Multi Line Textbox */
multi_line?: string;
/** Rich Text Editor */
rich_text_editor?: string;
/** Modular Blocks1 */
modular_blocks1?: ModularBlocks1[];
}
export interface ModularBlocks1 {
/** Multi Line Textbox */
multi_line?: string;
}