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];