Search
Preparing search index...
The search index is not available
@nestjs/core
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ClassSerializerInterceptor
Class ClassSerializerInterceptor
Hierarchy
ClassSerializerInterceptor
Implements
NestInterceptor
Index
Constructors
constructor
Properties
default
Options
reflector
Methods
get
Context
Options
intercept
reflect
Serialize
Metadata
serialize
transform
ToPlain
Constructors
constructor
new
Class
Serializer
Interceptor
(
reflector
:
any
, defaultOptions
?:
ClassTransformOptions
)
:
ClassSerializerInterceptor
Parameters
reflector:
any
Default value
defaultOptions:
ClassTransformOptions
= {}
Returns
ClassSerializerInterceptor
Properties
Protected
Readonly
default
Options
default
Options
:
ClassTransformOptions
Protected
Readonly
reflector
reflector
:
any
Methods
Private
get
Context
Options
get
Context
Options
(
context
:
ExecutionContext
)
:
ClassTransformOptions
|
undefined
Parameters
context:
ExecutionContext
Returns
ClassTransformOptions
|
undefined
intercept
intercept
(
context
:
ExecutionContext
, next
:
CallHandler
)
:
Observable
<
any
>
Parameters
context:
ExecutionContext
next:
CallHandler
Returns
Observable
<
any
>
Private
reflect
Serialize
Metadata
reflect
Serialize
Metadata
(
obj
:
object
|
Function
)
:
ClassTransformOptions
|
undefined
Parameters
obj:
object
|
Function
Returns
ClassTransformOptions
|
undefined
serialize
serialize
(
response
:
PlainLiteralObject
|
Array
<
PlainLiteralObject
>
, options
:
ClassTransformOptions
)
:
PlainLiteralObject
|
PlainLiteralObject
[]
Parameters
response:
PlainLiteralObject
|
Array
<
PlainLiteralObject
>
options:
ClassTransformOptions
Returns
PlainLiteralObject
|
PlainLiteralObject
[]
transform
ToPlain
transform
ToPlain
(
plainOrClass
:
any
, options
:
ClassTransformOptions
)
:
PlainLiteralObject
Parameters
plainOrClass:
any
options:
ClassTransformOptions
Returns
PlainLiteralObject
Globals
Class
Serializer
Interceptor
constructor
default
Options
reflector
get
Context
Options
intercept
reflect
Serialize
Metadata
serialize
transform
ToPlain
Generated using
TypeDoc