@dotcms/angular
Version:
Official Angular Components library to render a dotCMS page.
39 lines • 1.21 kB
TypeScript
import { Type } from '@angular/core';
import { DotCMSPageAsset, DotCMSPageRendererMode } from '@dotcms/types';
/**
* Represents a dynamic component entity.
* @typedef {Promise<Type<any>>} DynamicComponentEntity
* @memberof @dotcms/angular
*/
export type DynamicComponentEntity = Promise<Type<any>>;
/**
* Represents the context of a DotCMS page.
*/
export interface DotCMSPageStore {
/**
* Represents the DotCMS page asset.
* @type {DotCMSPageAsset}
* @memberof DotCMSPageStore
*/
page: DotCMSPageAsset;
/**
* Represents the dynamic components of the page for each Content Type.
* @type {DotCMSPageComponent}
* @memberof DotCMSPageStore
*/
components: DotCMSPageComponent;
/**
* Indicates the renderer mode.
* @type {DotCMSPageRendererMode}
* @memberof DotCMSPageStore
*/
mode: DotCMSPageRendererMode;
}
/**
* Represents a DotCMS page component.
* Used to store the dynamic components of a DotCMS page.
* @typedef {Record<string, DynamicComponentEntity>} DotCMSPageComponent
* @memberof @dotcms/angular
*/
export type DotCMSPageComponent = Record<string, DynamicComponentEntity>;
//# sourceMappingURL=index.d.ts.map