File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-unsafe-call */
2
1
/* eslint-disable @typescript-eslint/no-unsafe-return */
3
2
/* eslint-disable @typescript-eslint/no-unsafe-argument */
4
3
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
@@ -49,14 +48,14 @@ function prepareTransformer(schema: Schema): null | Transformer {
49
48
}
50
49
51
50
if ( typeof schema [ curr ] === 'string' ) {
52
- const type = reduceXSDType ( schema [ curr ] as string ) ;
51
+ const type = reduceXSDType ( schema [ curr ] ) ;
53
52
54
53
if ( ( types as any ) [ type ] ?. input ) {
55
54
const transformer = ( types as any ) [ type ] . input ;
56
55
return { ...prev , [ key ] : isArray ? map ( transformer ) : transformer } ;
57
56
}
58
57
} else if ( typeof schema [ curr ] === 'object' ) {
59
- const subItem = prepareTransformer ( schema [ curr ] as Schema ) ;
58
+ const subItem = prepareTransformer ( schema [ curr ] ) ;
60
59
if ( subItem ) {
61
60
return {
62
61
...prev ,
You can’t perform that action at this time.
0 commit comments