Skip to content

Commit 38078e7

Browse files
alan-agius4thePunderWoman
authored andcommitted
fix(compiler-cli): add missing period to error message (angular#47744)
With this change we add a missing period to the error message. PR Close angular#47744
1 parent 9483343 commit 38078e7

File tree

1 file changed

+3
-3
lines changed
  • packages/compiler-cli/src/ngtsc/annotations/component/src

1 file changed

+3
-3
lines changed

packages/compiler-cli/src/ngtsc/annotations/component/src/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
6969
if (!Array.isArray(imports)) {
7070
const error = createValueHasWrongTypeError(
7171
expr, imports,
72-
`'imports' must be an array of components, directives, pipes, or NgModules`)
72+
`'imports' must be an array of components, directives, pipes, or NgModules.`)
7373
.toDiagnostic();
7474
return {
7575
imports: [],
@@ -91,7 +91,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
9191
diagnostics.push(
9292
createValueHasWrongTypeError(
9393
ref.getOriginForDiagnostics(expr), ref,
94-
`'imports' must be an array of components, directives, pipes, or NgModules`)
94+
`'imports' must be an array of components, directives, pipes, or NgModules.`)
9595
.toDiagnostic());
9696
}
9797
} else if (isLikelyModuleWithProviders(ref)) {
@@ -111,7 +111,7 @@ export function validateAndFlattenComponentImports(imports: ResolvedValue, expr:
111111
diagnostics.push(
112112
createValueHasWrongTypeError(
113113
expr, imports,
114-
`'imports' must be an array of components, directives, pipes, or NgModules`)
114+
`'imports' must be an array of components, directives, pipes, or NgModules.`)
115115
.toDiagnostic());
116116
}
117117
}

0 commit comments

Comments
 (0)