Options
All
  • Public
  • Public/Protected
  • All
Menu

typed-http-decorators

Index

Namespaces

Enumerations

Interfaces

Type aliases

Variables

Functions

Type aliases

Accepted

Accepted<T>: GetType<typeof Accepted, T>

Type parameters

  • T

Ambiguous

Ambiguous<T>: GetType<typeof Ambiguous, T>

Type parameters

  • T

ArrayToUnion

ArrayToUnion<A>: A extends readonly [infer X, ...infer XS] ? X | ArrayToUnion<XS> : never

Type parameters

  • A

BadGateway

BadGateway<T>: GetType<typeof BadGateway, T>

Type parameters

  • T

BadRequest

BadRequest<T>: GetType<typeof BadRequest, T>

Type parameters

  • T

Conflict

Conflict<T>: GetType<typeof Conflict, T>

Type parameters

  • T

Continue

Continue<T>: GetType<typeof Continue, T>

Type parameters

  • T

Created

Created<T>: GetType<typeof Created, T>

Type parameters

  • T

EarlyHints

EarlyHints<T>: GetType<typeof EarlyHints, T>

Type parameters

  • T

EndpointDecorator

EndpointDecorator<RTS>: TypedPropertyDecorator<(...args: any[]) => Promise<ValueOf<ArrayToUnion<RTS>>>>

Type parameters

ExpectationFailed

ExpectationFailed<T>: GetType<typeof ExpectationFailed, T>

Type parameters

  • T

FailedDependency

FailedDependency<T>: GetType<typeof FailedDependency, T>

Type parameters

  • T

Forbidden

Forbidden<T>: GetType<typeof Forbidden, T>

Type parameters

  • T

Found

Found<T>: GetType<typeof Found, T>

Type parameters

  • T

GatewayTimeout

GatewayTimeout<T>: GetType<typeof GatewayTimeout, T>

Type parameters

  • T

GetEndpointDecorator

GetEndpointDecorator: <RTS>(method: HttpMethod, path: string, options: EndpointOptions<RTS>) => EndpointDecorator<RTS>

Type declaration

GetType

GetType<R, T>: HttpResponse<ReturnType<R>["status"], Type<T>>

Type parameters

Gone

Gone<T>: GetType<typeof Gone, T>

Type parameters

  • T

HttpMethod

HttpMethod: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "ALL" | "OPTIONS" | "HEAD"

HttpResponseOptions

HttpResponseOptions: OverrideOrDefault<HttpResponseOptionsOverrides>

HttpResponseTypeOptions

HttpResponseTypeOptions: OverrideOrDefault<HttpResponseTypeOptionsOverrides>

HttpResponseTypes

HttpResponseTypes: readonly HttpResponseType[]

HttpVersionNotSupported

HttpVersionNotSupported<T>: GetType<typeof HttpVersionNotSupported, T>

Type parameters

  • T

IAmATeapot

IAmATeapot<T>: GetType<typeof IAmATeapot, T>

Type parameters

  • T

InstanceOf

InstanceOf<T>: T extends Type<infer I> ? I : never

Type parameters

  • T

InternalServerError

InternalServerError<T>: GetType<typeof InternalServerError, T>

Type parameters

  • T

LengthRequired

LengthRequired<T>: GetType<typeof LengthRequired, T>

Type parameters

  • T

MethodNotAllowed

MethodNotAllowed<T>: GetType<typeof MethodNotAllowed, T>

Type parameters

  • T

Misdirected

Misdirected<T>: GetType<typeof Misdirected, T>

Type parameters

  • T

MovedPermanently

MovedPermanently<T>: GetType<typeof MovedPermanently, T>

Type parameters

  • T

NoContent

NoContent<T>: GetType<typeof NoContent, T>

Type parameters

  • T

NonAuthoritativeInformation

NonAuthoritativeInformation<T>: GetType<typeof NonAuthoritativeInformation, T>

Type parameters

  • T

NotAcceptable

NotAcceptable<T>: GetType<typeof NotAcceptable, T>

Type parameters

  • T

NotFound

NotFound<T>: GetType<typeof NotFound, T>

Type parameters

  • T

NotImplemented

NotImplemented<T>: GetType<typeof NotImplemented, T>

Type parameters

  • T

NotModified

NotModified<T>: GetType<typeof NotModified, T>

Type parameters

  • T

Ok

Ok<T>: GetType<typeof Ok, T>

Type parameters

  • T

PartialContent

PartialContent<T>: GetType<typeof PartialContent, T>

Type parameters

  • T

PayloadTooLarge

PayloadTooLarge<T>: GetType<typeof PayloadTooLarge, T>

Type parameters

  • T

PaymentRequired

PaymentRequired<T>: GetType<typeof PaymentRequired, T>

Type parameters

  • T

PermanentRedirect

PermanentRedirect<T>: GetType<typeof PermanentRedirect, T>

Type parameters

  • T

PreconditionFailed

PreconditionFailed<T>: GetType<typeof PreconditionFailed, T>

Type parameters

  • T

Processing

Processing<T>: GetType<typeof Processing, T>

Type parameters

  • T

ProxyAuthenticationRequired

ProxyAuthenticationRequired<T>: GetType<typeof ProxyAuthenticationRequired, T>

Type parameters

  • T

RequestTimeout

RequestTimeout<T>: GetType<typeof RequestTimeout, T>

Type parameters

  • T

RequestedRangeNotSatisfiable

RequestedRangeNotSatisfiable<T>: GetType<typeof RequestedRangeNotSatisfiable, T>

Type parameters

  • T

ResetContent

ResetContent<T>: GetType<typeof ResetContent, T>

Type parameters

  • T

ResponseConstructor

ResponseConstructor<Status>: <BodyType>(body: InstanceOf<BodyType>, options?: HttpResponseOptions) => HttpResponse<Status, BodyType>

Type parameters

  • Status: number

Type declaration

ResponseTypeConstructor

ResponseTypeConstructor<Status>: <BodyType>(body: BodyType, options?: HttpResponseTypeOptions) => HttpResponseType<Status, BodyType>

Type parameters

  • Status: number

Type declaration

SeeOther

SeeOther<T>: GetType<typeof SeeOther, T>

Type parameters

  • T

ServiceUnavailable

ServiceUnavailable<T>: GetType<typeof ServiceUnavailable, T>

Type parameters

  • T

SwitchingProtocols

SwitchingProtocols<T>: GetType<typeof SwitchingProtocols, T>

Type parameters

  • T

TemporaryRedirect

TemporaryRedirect<T>: GetType<typeof TemporaryRedirect, T>

Type parameters

  • T

TooManyRequests

TooManyRequests<T>: GetType<typeof TooManyRequests, T>

Type parameters

  • T

Type

Type<T>: {}

Type parameters

  • T = unknown

Type declaration

    TypedPropertyDecorator

    TypedPropertyDecorator<T>: (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void

    Type parameters

    • T

    Type declaration

      • (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void
      • Parameters

        • target: Object
        • propertyKey: string | symbol
        • descriptor: TypedPropertyDescriptor<T>

        Returns TypedPropertyDescriptor<T> | void

    Unauthorized

    Unauthorized<T>: GetType<typeof Unauthorized, T>

    Type parameters

    • T

    UnprocessableEntity

    UnprocessableEntity<T>: GetType<typeof UnprocessableEntity, T>

    Type parameters

    • T

    UnsupportedMediaType

    UnsupportedMediaType<T>: GetType<typeof UnsupportedMediaType, T>

    Type parameters

    • T

    UriTooLong

    UriTooLong<T>: GetType<typeof UriTooLong, T>

    Type parameters

    • T

    ValueOf

    ValueOf<RT>: RT extends HttpResponseType<infer Status, infer BodyType> ? HttpResponse<Status, BodyType> : never

    Type parameters

    • RT

    Variables

    Accepted

    Ambiguous

    BadGateway

    BadRequest

    Conflict

    Continue

    Created

    EarlyHints

    ExpectationFailed

    FailedDependency

    Forbidden

    Found

    GatewayTimeout

    Gone

    HttpVersionNotSupported

    IAmATeapot

    InternalServerError

    LengthRequired

    MethodNotAllowed

    Misdirected

    MovedPermanently

    NoContent

    NonAuthoritativeInformation

    NotAcceptable

    NotFound

    NotImplemented

    NotModified

    Ok

    PartialContent

    PayloadTooLarge

    PaymentRequired

    PermanentRedirect

    PreconditionFailed

    Processing

    ProxyAuthenticationRequired

    RequestTimeout

    RequestedRangeNotSatisfiable

    ResetContent

    SeeOther

    ServiceUnavailable

    SwitchingProtocols

    TemporaryRedirect

    TooManyRequests

    Unauthorized

    UnprocessableEntity

    UnsupportedMediaType

    UriTooLong

    Functions

    Const either

    • either<XS>(...values: XS): XS

    setEndpointDecorator

    Const t

    • t<XS>(...values: XS): XS

    Generated using TypeDoc