Skip to content

Commit ca2a8e8

Browse files
committed
Fix typeOperatingSpacingRule:use ReadonlyArray
1 parent f37d906 commit ca2a8e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/tslint/typeOperatorSpacingRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
1919
ts.forEachChild(node, recur);
2020
}
2121

22-
function check(types: ts.TypeNode[]): void {
22+
function check(types: ReadonlyArray<ts.TypeNode>): void {
2323
let expectedStart = types[0].end + 2; // space, | or &
2424
for (let i = 1; i < types.length; i++) {
2525
const currentType = types[i];

0 commit comments

Comments
 (0)