Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correct i18n function parameter type
Browse files Browse the repository at this point in the history
The type of the first parameter of the internal unwrapTemplateLiteral function should be a `NodePath<types.TaggedTemplateExpression>` not a `NodePath<types.TemplateLiteral>`.
  • Loading branch information
clydin authored and mgechev committed Sep 2, 2020
1 parent d4bdf2e commit 1d3f4f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ function findLocalizePositions(
let localizeOld: boolean | undefined;

function unwrapTemplateLiteral(
path: NodePath<types.TemplateLiteral>,
path: NodePath<types.TaggedTemplateExpression>,
utils: LocalizeUtilities,
): [TemplateStringsArray, types.Expression[]] {
if (localizeOld === undefined) {
Expand Down

0 comments on commit 1d3f4f7

Please sign in to comment.