@rogerpence/rp-utils
    Preparing search index...

    Type Alias MarkdownObjectsValidState<T>

    Result of validating markdown files against a Zod schema. Contains validation statistics, errors, and successfully validated objects.

    type MarkdownObjectsValidState<T extends Record<string, any>> = {
        filesFound: number;
        filesValid: number;
        validatedObjects: MarkdownDocument<T>[];
        validationErrors: string[];
    }

    Type Parameters

    • T extends Record<string, any>

      The validated type of the frontmatter object

    Index

    Properties

    filesFound: number

    Total number of files found

    filesValid: number

    Number of files that passed validation

    validatedObjects: MarkdownDocument<T>[]

    Array of successfully validated markdown files with typed frontmatter

    validationErrors: string[]

    Array of validation error messages