@@ -35,7 +35,7 @@ export const getClientReqRespTypesMap = async (
35
35
if ( ! params . typeAnnotation ) return ;
36
36
if ( ! params . typeAnnotation . typeAnnotation ) return ;
37
37
if ( params . typeAnnotation . typeAnnotation . type !== "TSTypeReference" ) return ;
38
- const paramsTypeRef = params . typeAnnotation ! . typeAnnotation ! as TSTypeReference ;
38
+ const paramsTypeRef = params . typeAnnotation . typeAnnotation as TSTypeReference ;
39
39
40
40
if ( ! paramsTypeRef . typeName ) return ;
41
41
if ( paramsTypeRef . typeName . type !== "TSQualifiedName" ) return ;
@@ -55,7 +55,7 @@ export const getClientReqRespTypesMap = async (
55
55
if ( ! callback . typeAnnotation ) return ;
56
56
if ( ! callback . typeAnnotation . typeAnnotation ) return ;
57
57
if ( callback . typeAnnotation . typeAnnotation . type !== "TSFunctionType" ) return ;
58
- const callbackTypeRef = callback . typeAnnotation ! . typeAnnotation ! as TSFunctionType ;
58
+ const callbackTypeRef = callback . typeAnnotation . typeAnnotation as TSFunctionType ;
59
59
60
60
if ( ! callbackTypeRef . parameters ) return ;
61
61
if ( callbackTypeRef . parameters . length !== 2 ) return ;
@@ -66,7 +66,7 @@ export const getClientReqRespTypesMap = async (
66
66
if ( responseType . typeAnnotation . type !== "TSTypeAnnotation" ) return ;
67
67
if ( ! responseType . typeAnnotation . typeAnnotation ) return ;
68
68
if ( responseType . typeAnnotation . typeAnnotation . type !== "TSTypeReference" ) return ;
69
- const responseTypeRef = responseType . typeAnnotation ! . typeAnnotation ! as TSTypeReference ;
69
+ const responseTypeRef = responseType . typeAnnotation . typeAnnotation as TSTypeReference ;
70
70
71
71
if ( ! responseTypeRef . typeName ) return ;
72
72
if ( responseTypeRef . typeName . type !== "TSQualifiedName" ) return ;
0 commit comments