@samatawy/checks
    Preparing search index...

    @samatawy/checks

    Documentation

    @samatawy/checks provides TypeScript validation and object-management utilities for fluent checks, validated object construction, and coded results.

    The package is still evolving and should not yet be treated as production-tested infrastructure. Breaking changes are still relatively frequent while the API surface is being refined.

    It is aimed at business application code that wants a small typed runtime layer around validated DTOs, object hydration, and localized coded results without pulling in a larger framework.

    The generated docs site is organized into four top-level sections:

    • How-To for recipes, decorated classes, and object hydration
    • Reference for the validation API, localized-result behavior, and standards comparison notes

    The public API is exported from src/index.ts and includes:

    • fluent validation classes such as ObjectCheck, ArrayCheck, and FieldCheck
    • specialized validators such as EmailCheck, UrlCheck, FileCheck, and ImageCheck
    • ObjectFactory for validated object creation and update flows
    • coded-result and i18n helpers such as CodedMessageCatalog and ICodedMessageCatalog
    • a Node-only schema and message file-loading helper under @samatawy/checks/node
    • result and option types such as ResultSet, SingleResult, ResultCodeDefinition, and CheckOptions
    • result(options?) as the main output API for nested, flattened, localized, and validated projections
    • fluent validation for objects, arrays, fields, strings, numbers, dates, files, and images
    • validated object hydration and patch-style updates through ObjectFactory
    • coded-result and localization workflows for business-facing validation output
    • support for both synchronous and asynchronous validation patterns
    1. Start with the README for a quick usage example.
    2. Use How-To for common validation and hydration tasks.
    3. Read Reference when you need API details or coded-result behavior.

    If you are specifically looking for schema-driven validation, start with SchemaCheck in the How-To section.

    If you are evaluating libraries, see Zod And Ajv Comparison in the Reference section.