mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 21:37:41 -06:00
Fix typeOperatingSpacingRule:use ReadonlyArray
This commit is contained in:
parent
f37d9068ff
commit
ca2a8e8518
@ -19,7 +19,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
|
||||
ts.forEachChild(node, recur);
|
||||
}
|
||||
|
||||
function check(types: ts.TypeNode[]): void {
|
||||
function check(types: ReadonlyArray<ts.TypeNode>): void {
|
||||
let expectedStart = types[0].end + 2; // space, | or &
|
||||
for (let i = 1; i < types.length; i++) {
|
||||
const currentType = types[i];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user