Skip to content

Commit 5efa132

Browse files
committed
fix(scripts): lint/style/noNonNullAssertion
1 parent 00d9642 commit 5efa132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/generateClientTypesMap/getClientReqRespTypesMap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const getClientReqRespTypesMap = async (
3535
if (!params.typeAnnotation) return;
3636
if (!params.typeAnnotation.typeAnnotation) return;
3737
if (params.typeAnnotation.typeAnnotation.type !== "TSTypeReference") return;
38-
const paramsTypeRef = params.typeAnnotation!.typeAnnotation! as TSTypeReference;
38+
const paramsTypeRef = params.typeAnnotation.typeAnnotation as TSTypeReference;
3939

4040
if (!paramsTypeRef.typeName) return;
4141
if (paramsTypeRef.typeName.type !== "TSQualifiedName") return;
@@ -55,7 +55,7 @@ export const getClientReqRespTypesMap = async (
5555
if (!callback.typeAnnotation) return;
5656
if (!callback.typeAnnotation.typeAnnotation) return;
5757
if (callback.typeAnnotation.typeAnnotation.type !== "TSFunctionType") return;
58-
const callbackTypeRef = callback.typeAnnotation!.typeAnnotation! as TSFunctionType;
58+
const callbackTypeRef = callback.typeAnnotation.typeAnnotation as TSFunctionType;
5959

6060
if (!callbackTypeRef.parameters) return;
6161
if (callbackTypeRef.parameters.length !== 2) return;
@@ -66,7 +66,7 @@ export const getClientReqRespTypesMap = async (
6666
if (responseType.typeAnnotation.type !== "TSTypeAnnotation") return;
6767
if (!responseType.typeAnnotation.typeAnnotation) return;
6868
if (responseType.typeAnnotation.typeAnnotation.type !== "TSTypeReference") return;
69-
const responseTypeRef = responseType.typeAnnotation!.typeAnnotation! as TSTypeReference;
69+
const responseTypeRef = responseType.typeAnnotation.typeAnnotation as TSTypeReference;
7070

7171
if (!responseTypeRef.typeName) return;
7272
if (responseTypeRef.typeName.type !== "TSQualifiedName") return;

0 commit comments

Comments
 (0)