Skip to content

Commit 7bbcb7f

Browse files
committed
test(@angular-devkit/schematics): add explicit return types for isolated declarations
This commit adds explicit return types to schematic factory functions in the test suite to satisfy the `isolatedDeclarations` requirement.
1 parent 9030b2f commit 7bbcb7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/angular_devkit/schematics/tools/file-system-engine-host/extra-properties/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { SchematicContext, Tree } from '@angular-devkit/schematics';
1111

1212
export default function (options: {}) {
13-
return (tree: Tree, context: SchematicContext) => {
13+
return (tree: Tree, context: SchematicContext): void => {
1414
// We pass information back to the test.
1515
tree.create(
1616
(context.schematic.description as any).extra, // tslint:disable-line:no-any

tests/angular_devkit/schematics/tools/file-system-engine-host/file-tasks/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { SchematicContext, Tree } from '@angular-devkit/schematics';
1111

1212
export default function () {
13-
return (_: Tree, context: SchematicContext) => {
13+
return (_: Tree, context: SchematicContext): void => {
1414
context.addTask({
1515
toConfiguration() {
1616
return { name: 'file-tasks/file-task.js' };

tests/angular_devkit/schematics/tools/file-system-engine-host/null-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88
export default function () {
9-
return () => {};
9+
return (): void => {};
1010
}

0 commit comments

Comments
 (0)