Skip to content

Commit 236184f

Browse files
committed
chore(transformer): Narrow signatures of mock factory call routines
1 parent 4e5a9bc commit 236184f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/transformer/mockFactoryCall/mockFactoryCall.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { MockIdentifierGenericParameter } from '../mockIdentifier/mockIdentifier
1111
import { Scope } from '../scope/scope';
1212
import { TypescriptCreator } from '../helper/creator';
1313

14-
export function GetMockFactoryCall(typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.Expression {
14+
export function GetMockFactoryCall(typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.CallExpression {
1515
const declaration: ts.Declaration = TypescriptHelper.GetDeclarationFromNode(typeReferenceNode.typeName);
1616

1717
return getDeclarationMockFactoryCall(declaration, typeReferenceNode, scope);
1818
}
1919

20-
export function CreateMockFactory(typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.Expression {
20+
export function CreateMockFactory(typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.CallExpression {
2121
const declaration: ts.Declaration = TypescriptHelper.GetDeclarationFromNode(typeReferenceNode.typeName);
2222
MockDefiner.instance.createMockFactory(declaration);
2323

@@ -68,7 +68,7 @@ export function GetMockFactoryCallForThis(mockKey: string): ts.Expression {
6868
);
6969
}
7070

71-
function getDeclarationMockFactoryCall(declaration: ts.Declaration, typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.Expression {
71+
function getDeclarationMockFactoryCall(declaration: ts.Declaration, typeReferenceNode: ts.TypeReferenceNode, scope: Scope): ts.CallExpression {
7272
const declarationKey: string | undefined = MockDefiner.instance.getDeclarationKeyMap(declaration);
7373

7474
if (!declarationKey) {

0 commit comments

Comments
 (0)