Skip to content

Commit a3e404b

Browse files
clydinmgechev
authored andcommitted
fix(@angular-devkit/build-angular): correct i18n function parameter type
The type of the first parameter of the internal unwrapTemplateLiteral function should be a `NodePath<types.TaggedTemplateExpression>` not a `NodePath<types.TemplateLiteral>`.
1 parent 530f79e commit a3e404b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ function findLocalizePositions(
884884
let localizeOld: boolean | undefined;
885885

886886
function unwrapTemplateLiteral(
887-
path: NodePath<types.TemplateLiteral>,
887+
path: NodePath<types.TaggedTemplateExpression>,
888888
utils: LocalizeUtilities,
889889
): [TemplateStringsArray, types.Expression[]] {
890890
if (localizeOld === undefined) {

0 commit comments

Comments
 (0)