File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
export * from './response-error.type'
2
2
export * from './response-payload.type'
3
+ export * from './responses-payload.type'
Original file line number Diff line number Diff line change @@ -4,17 +4,17 @@ import { ResponseError } from '../interfaces/response-error.interface'
4
4
import { ResponsePayload } from '../interfaces/response-payload.interface'
5
5
import { ResponseErrorType } from './response-error.type'
6
6
7
- export const ResponsePayloadType = < T > (
7
+ export const ResponsesPayloadType = < T > (
8
8
classRef : Type < T > ,
9
9
) : Type < ResponsePayload < T > > => {
10
10
@ObjectType ( 'ResponsesPayload' , { isAbstract : true } )
11
- class ResponsePayloadType implements ResponsePayload < T > {
11
+ class ResponsesPayloadType implements ResponsePayload < T > {
12
12
@Field ( ( ) => [ classRef ] , { nullable : true } )
13
13
data ?: T [ ]
14
14
15
15
@Field ( ( ) => ResponseErrorType , { nullable : true } )
16
16
error ?: ResponseError
17
17
}
18
18
19
- return ResponsePayloadType
19
+ return ResponsesPayloadType
20
20
}
You can’t perform that action at this time.
0 commit comments