MoroJSoro JS
DocsBenchmarksPlaygroundMigrate
GitHubGet started

Technical

API Reference & Architecture

DocsCLITechnical

Docs for @morojs/moro v1.8.0

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
MoroJSoro JS

A TypeScript backend framework with its own native engine. Zero dependencies, four runtimes.

Product

DocsBenchmarksPlaygroundCLIBlog

Compare

vs ExpressMigration guidesRoadmap

Community

GitHubDiscordXExamples

Legal

PrivacyTermsAbout
© CM Ventures, Inc. Built withfor the TypeScript community.