@maxlkatze/cms
Version:
A git based Nuxt Module CMS - zero effort, zero cost
21 lines (20 loc) • 466 B
TypeScript
import type { Ref } from 'vue';
export type ContentDefinition = {
key: string;
default: ContentValue;
};
export type ContentImage = {
src: string;
alt: string;
};
export declare enum ContentType {
Text = "text",
RichText = "richText",
Image = "image"
}
export type StoredContent = {
type: ContentType;
options: ContentDefinition;
content: ContentValue | Ref<ContentValue>;
};
export type ContentValue = string | ContentImage;