File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ const {
2
2
isString,
3
3
isDefinedOrThrow,
4
4
isStringOrObjectOrThrow
5
- } = require ( "../../bindings/http/validation/fun.js " ) ;
5
+ } = require ( "../../bindings/http/validation/fun" ) ;
6
6
const ValidationError = require ( "../../bindings/http/validation/validation_error.js" ) ;
7
7
8
8
const invalidPayloadTypeError = new ValidationError ( "invalid payload type, allowed are: string or object" ) ;
9
9
const nullOrUndefinedPayload = new ValidationError ( "null or undefined payload" ) ;
10
10
11
- const asJSON = ( v : any ) => ( isString ( v ) ? JSON . parse ( v ) : v ) ;
11
+ const asJSON = ( v : object | string ) => ( isString ( v ) ? JSON . parse ( v as string ) : v ) ;
12
12
13
13
class JSONParser {
14
14
decorator : any
15
- constructor ( decorator : any ) {
15
+ constructor ( decorator : Base64Parser ) {
16
16
this . decorator = decorator ;
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments