Skip to content

Commit 4da1f29

Browse files
JoostKthePunderWoman
authored andcommitted
fix(compiler-cli): resolve deprecation warning (#48812)
This commit updates one usage of the `ts.factory.createMethodDeclaration` API to avoid a deprecated function signature, which avoids logging a warning. PR Close #48812
1 parent 28da74c commit 4da1f29

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export function generateInlineTypeCtor(
111111

112112
// Create the type constructor method declaration.
113113
return ts.factory.createMethodDeclaration(
114-
/* decorators */ undefined,
115114
/* modifiers */[ts.factory.createModifier(ts.SyntaxKind.StaticKeyword)],
116115
/* asteriskToken */ undefined,
117116
/* name */ meta.fnName,

0 commit comments

Comments
 (0)