From ca2a8e8518b84ce60502ba0c390acd67aab4121f Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Wed, 19 Jul 2017 16:59:27 -0700 Subject: [PATCH] Fix typeOperatingSpacingRule:use ReadonlyArray --- 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];