Skip to content

Commit 2274caa

Browse files
authored
Adds @ts-ignore annotations for TS 5.0 errors. (#6281)
It's unclear when we'll be able to adopt TS 5. It is somewhat likely we'll run into some issues. These comments suppress some warnings from our internal code tooling about some incompatibilities with TS 5, in the meantime. Googlers, see b/275900646 and cl/520430860.
1 parent 4675a94 commit 2274caa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tensorboard/webapp/runs/views/runs_table/runs_table_container.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ function matchFilter(
173173
filter.filterValues;
174174
return values.includes(value);
175175
} else if (filter.type === DomainType.INTERVAL) {
176+
// Auto-added to unblock TS5.0 migration
177+
// @ts-ignore(go/ts50upgrade): Operator '<=' cannot be applied to types
178+
// 'number' and 'string | number | boolean'.
179+
// Auto-added to unblock TS5.0 migration
180+
// @ts-ignore(go/ts50upgrade): Operator '<=' cannot be applied to types
181+
// 'string | number | boolean' and 'number'.
176182
return filter.filterLowerValue <= value && value <= filter.filterUpperValue;
177183
}
178184
return false;

0 commit comments

Comments
 (0)