MoroJSoro JS
FeaturesDocsCLIMigrationsBenchmarksExamples
Features
Docs
CLI
Migrations
Benchmarks
Examples

© 2024 MoroJs

Technical

API Reference & Architecture

DocsCLITechnical

Version: 1.0.0

Last updated: 5/12/2026

Technical
API
Functions
Validate

@morojs/moro


@morojs/moro / validate

Function: validate()

validate<TBody, TQuery, TParams>(config, handler): (req, res) => Promise<any>

Defined in: src/core/validation/index.ts:106

Type Parameters

TBody

TBody = any

TQuery

TQuery = any

TParams

TParams = any

Parameters

config

ValidationConfig

handler

(req, res) => any

Returns

(req, res): Promise<any>

Parameters

req

HttpRequest

res

HttpResponse

Returns

Promise<any>

Back to validateView Source
MoroJS

The TypeScript-first toolkit for building ultra-fast APIs with zero-friction developer experience.

Product

  • Documentation
  • Examples
  • Playground
  • Roadmap

Community

  • GitHub
  • Discord
  • Twitter

Resources

  • Getting Started
  • API Reference
  • Migration Guide
  • Best Practices

Company

  • About
  • Careers
  • Privacy
  • Terms
© CM Ventures, Inc. Built withfor the TypeScript community.
Privacy PolicyTerms of Service
All systems operational