import { Formatter } from '@nodata/redux-utils'; /** * A ResourceContent is the content of the resource. * * The renderable element have: * - A type. * - A value. * * Note for the htmlElement type: * It is not possible to append the same htmlElement in several * resources. It is limited by the DOM. * * @prop type string The resource type. * @prop value The template for this resource. */ export interface ResourceContent { readonly type: ResourceContentType; readonly value?: ResourceContentValue; } export type ResourceContentType = Formatter; export type ResourceContentValue = Formatter;