File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { TransformationOptions } from "../TransformationOptions" ;
2
-
3
1
/**
4
2
* Extra options that apply to each controller action.
5
3
*/
6
- export interface ControllerOptions extends TransformationOptions {
4
+ export interface ControllerOptions {
5
+ /**
6
+ * If set to false, class-transformer won't be used to perform request serialization.
7
+ */
8
+ transformRequest ?: boolean ;
7
9
10
+ /**
11
+ * If set to false, class-transformer won't be used to perform response serialization.
12
+ */
13
+ transformResponse ?: boolean ;
8
14
}
Original file line number Diff line number Diff line change 1
- import { TransformationOptions } from "../TransformationOptions" ;
2
-
3
1
/**
4
2
* Extra handler-specific options.
5
3
*/
6
- export interface HandlerOptions extends TransformationOptions {
4
+ export interface HandlerOptions {
5
+ /**
6
+ * If set to false, class-transformer won't be used to perform request serialization.
7
+ */
8
+ transformRequest ?: boolean ;
7
9
10
+ /**
11
+ * If set to false, class-transformer won't be used to perform response serialization.
12
+ */
13
+ transformResponse ?: boolean ;
8
14
}
You can’t perform that action at this time.
0 commit comments