Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "MethodSchema"

Index

Interfaces

Functions

Functions

MethodSchema

  • Represents the type information on the request and response data of an HTTP method described in a route schema.

    Example

    MethodSchema<
      RequestData<{
        query: { name: string }
      }>,
      ResponseData<{
        body: { message: string }
      }>
    >()

    Type parameters

    • T: RequestData

      Represents type information on the request data

    • U: ResponseData

      Represents type information on the response data

    Returns MethodSchema<T, U>

Generated using TypeDoc