Skip to content

Commit 6eefd02

Browse files
committed
chore(transformer): Apply non-nullable check for getDeclarationKeyMap use
1 parent 8f7104c commit 6eefd02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transformer/descriptor/method/method.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export function GetMethodDescriptor(propertyName: ts.PropertyName, methodSignatu
4747
variables.push(
4848
TypescriptCreator.createVariableDeclaration(
4949
variableIdentifier,
50-
ts.createStringLiteral(MockDefiner.instance.getDeclarationKeyMap(declaration)),
50+
// FIXME: Remove the non nullable operator when/if https://github.com/Typescript-TDD/ts-auto-mock/pull/314 is merged
51+
ts.createStringLiteral(MockDefiner.instance.getDeclarationKeyMap(declaration)!),
5152
),
5253
);
5354
}

0 commit comments

Comments
 (0)