@dotcms/types
Version:
The `@dotcms/types` package contains TypeScript type definitions for the dotCMS ecosystem. Use it to enable type safety and an enhanced developer experience when working with dotCMS APIs and structured content.
19 lines (18 loc) • 721 B
TypeScript
export type DotCMSInlineEditingType = 'BLOCK_EDITOR' | 'WYSIWYG';
/**
* Interface representing the data needed for inline editing in DotCMS
*
* @interface DotCMSInlineEditorData
* @property {string} inode - The inode identifier of the content being edited
* @property {number} language - The language ID of the content
* @property {string} contentType - The content type identifier
* @property {string} fieldName - The name of the field being edited
* @property {Record<string, unknown>} content - The content data as key-value pairs
*/
export interface DotCMSInlineEditingPayload {
inode: string;
language: number;
contentType: string;
fieldName: string;
content: Record<string, unknown>;
}