From ed87b40902bb3d205556542249b67aec009fb2f6 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 19 Jul 2017 17:06:31 -0700 Subject: [PATCH] Fix linter (#17312) We just merged a change which makes the `.types` member of a union or intersection type a readonly array. Our lint rule's type annotation needs to reflect that. --- scripts/tslint/typeOperatorSpacingRule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tslint/typeOperatorSpacingRule.ts b/scripts/tslint/typeOperatorSpacingRule.ts index 4bd70e6eefa..d7da2e6b5e8 100644 --- a/scripts/tslint/typeOperatorSpacingRule.ts +++ b/scripts/tslint/typeOperatorSpacingRule.ts @@ -19,7 +19,7 @@ function walk(ctx: Lint.WalkContext): void { ts.forEachChild(node, recur); } - function check(types: ts.TypeNode[]): void { + function check(types: ReadonlyArray): void { let expectedStart = types[0].end + 2; // space, | or & for (let i = 1; i < types.length; i++) { const currentType = types[i];