diff --git a/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts b/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts index 5e93aa402d..5d604f8ec0 100644 --- a/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts +++ b/packages/compiler-cli/src/ngtsc/metadata/src/reflector.ts @@ -127,7 +127,7 @@ export class TypeScriptReflectionHost implements ReflectionHost { return map; } - isClass(node: ts.Declaration): node is ts.ClassDeclaration { + isClass(node: ts.Declaration): boolean { // In TypeScript code, classes are ts.ClassDeclarations. return ts.isClassDeclaration(node); }