node-dextrin - v0.4.0
    Preparing search index...

    Function validateEncode

    • Encode-time schema validation: checks value — ordinary JS data you're about to encode — against a named, compiled schema before encoding produces any output. The mirror image of validate, for data on its way out rather than in. Returns the checked value, stripped of internal bookkeeping; nothing is converted (DXN.md §4.7).

      Parameters

      • value: unknown
      • registry: export=
      • schemaName: string
      • Optionalopts: { [k: string]: unknown } = {}

      Returns unknown