Skip to content

Commit ed87b40

Browse files
authored
Fix linter (microsoft#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.
1 parent f37d906 commit ed87b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)