Skip to content

ParamTypes

@tsed/platform-params

Usage

typescript
import { ParamTypes } from "@tsed/platform-params";

See /packages/platform/platform-params/src/types/domain/ParamTypes.ts.

Overview

ts
enum ParamTypes {
    $CTX = "$CTX",
    BODY = "BODY",
    PATH = "PATH",
    QUERY = "QUERY",
    HEADER = "HEADER",
    RAW_BODY = "RAW_BODY",
    COOKIES = "COOKIES",
    LOCALS = "LOCALS",
    SESSION = "SESSION",
    FILES = "FILES",
    NEXT_FN = "NEXT_FN",
    ERR = "ERR",
    REQUEST = "REQUEST",
    PLATFORM_REQUEST = "PLATFORM_REQUEST",
    NODE_REQUEST = "NODE_REQUEST",
    RESPONSE = "RESPONSE",
    PLATFORM_RESPONSE = "PLATFORM_RESPONSE",
    NODE_RESPONSE = "NODE_RESPONSE",
    RESPONSE_DATA = "RESPONSE_DATA",
    ENDPOINT_INFO = "ENDPOINT_INFO",
    RES = "RES",
    REQ = "REQ"
}

$CTX

ts
$CTX = "$CTX",

BODY

ts
BODY = "BODY",

PATH

ts
PATH = "PATH",

QUERY

ts
QUERY = "QUERY",
ts
HEADER = "HEADER",

RAW_BODY

ts
RAW_BODY = "RAW_BODY",

COOKIES

ts
COOKIES = "COOKIES",

LOCALS

ts
LOCALS = "LOCALS",

SESSION

ts
SESSION = "SESSION",

FILES

ts
FILES = "FILES",

NEXT_FN

ts
NEXT_FN = "NEXT_FN",

ERR

ts
ERR = "ERR",

REQUEST

ts
REQUEST = "REQUEST",

PLATFORM_REQUEST

ts
PLATFORM_REQUEST = "PLATFORM_REQUEST",

NODE_REQUEST

ts
NODE_REQUEST = "NODE_REQUEST",

RESPONSE

ts
RESPONSE = "RESPONSE",

PLATFORM_RESPONSE

ts
PLATFORM_RESPONSE = "PLATFORM_RESPONSE",

NODE_RESPONSE

ts
NODE_RESPONSE = "NODE_RESPONSE",

RESPONSE_DATA

ts
RESPONSE_DATA = "RESPONSE_DATA",

ENDPOINT_INFO

ts
ENDPOINT_INFO = "ENDPOINT_INFO",

RES

ts
RES = "RES",

REQ

ts
REQ = "REQ"

Released under the MIT License.