UNPKG

@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.

17 lines (16 loc) 416 B
export declare const DotCMSEntityState: { readonly IDLE: "IDLE"; readonly LOADING: "LOADING"; readonly SUCCESS: "SUCCESS"; readonly ERROR: "ERROR"; }; export type DotCMSEntityStatus = { state: typeof DotCMSEntityState.IDLE; } | { state: typeof DotCMSEntityState.LOADING; } | { state: typeof DotCMSEntityState.SUCCESS; } | { state: typeof DotCMSEntityState.ERROR; error: Error; };