export interface ParsedContentInternalMeta { /** * Content id */ _id: string /** * Content source */ _source?: string /** * Content path, this path is source agnostic and it the content my live in any source */ _path?: string /** * Content title */ title?: string /** * Content draft status */ _draft?: boolean /** * Content partial status */ _partial?: boolean /** * Content locale */ _locale?: string /** * File type of the content, i.e `markdown` */ _type?: string /** * Path to the file relative to the content directory */ _file?: string /** * Extension of the file */ _extension?: string } export interface ParsedContentMeta extends ParsedContentInternalMeta { [key: string]: any } export interface ParsedContent extends ParsedContentMeta { /** * Excerpt */ excerpt?: any /** * Content body */ body: any } export interface MarkdownNode { type: string tag?: string value?: string props?: Record content?: any children?: MarkdownNode[] attributes?: Record fmAttributes?: Record } export interface MarkdownHtmlNode extends MarkdownNode { type: 'html' value: string } export interface MarkdownRoot { type: 'root' children: MarkdownNode[] props?: Record } export interface MarkdownPlugin extends Record { } export interface MarkdownOptions { /** * Enable/Disable MDC components. */ mdc: boolean toc: { /** * Maximum heading depth to include in the table of contents. */ depth: number searchDepth: number } tags: Record remarkPlugins: Record rehypePlugins: Record } // types/nuxt-hooks.d.ts declare module '#app' { interface RuntimeNuxtHooks { // adapte le type du payload / retour selon ce que ton hook utilise 'mdc-editor:config': (config: unknown) => void | Promise } }