From 39345b6faeacd1740550536b4e26b81b22a959cc Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 26 Mar 2019 14:16:49 +0000 Subject: [PATCH] style(compiler-cli): ensure FFR type is implemented correctly (#29539) PR Close #29539 --- packages/compiler-cli/src/ngtsc/annotations/src/util.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/annotations/src/util.ts b/packages/compiler-cli/src/ngtsc/annotations/src/util.ts index 9a6ed425a1..de364a789c 100644 --- a/packages/compiler-cli/src/ngtsc/annotations/src/util.ts +++ b/packages/compiler-cli/src/ngtsc/annotations/src/util.ts @@ -253,8 +253,8 @@ export function unwrapForwardRef(node: ts.Expression, reflector: ReflectionHost) * @returns an unwrapped argument if `ref` pointed to forwardRef, or null otherwise */ export function forwardRefResolver( - ref: Reference, - args: ts.Expression[]): ts.Expression|null { + ref: Reference, + args: ReadonlyArray): ts.Expression|null { if (!isAngularCoreReference(ref, 'forwardRef') || args.length !== 1) { return null; } @@ -266,8 +266,8 @@ export function forwardRefResolver( * @param resolvers Resolvers to be combined. */ export function combineResolvers(resolvers: ForeignFunctionResolver[]): ForeignFunctionResolver { - return (ref: Reference, - args: ts.Expression[]): ts.Expression | + return (ref: Reference, + args: ReadonlyArray): ts.Expression | null => { for (const resolver of resolvers) { const resolved = resolver(ref, args);