node-dextrin - v0.1.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 (possibly coerced — see schema/validator.cjs's own doc), stripped of internal bookkeeping.

      Parameters

      • value: unknown
      • registry: export=
      • schemaName: string
      • Optionalopts: { coerce?: boolean } = {}

      Returns unknown