From f92037f032950dc1c2600fb9f09fa18d9fb0b564 Mon Sep 17 00:00:00 2001 From: Ben Lickly Date: Tue, 1 Sep 2026 14:37:05 -0700 Subject: [PATCH] Adds @ts-ignore suppressions with TODO(go/ts60upgrade) for compiler errors caused by TypeScript 6.0 standard library declaration updates. PiperOrigin-RevId: 974713167 --- testing/harness.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testing/harness.ts b/testing/harness.ts index d4caed1d42..eeebecc678 100644 --- a/testing/harness.ts +++ b/testing/harness.ts @@ -15,9 +15,8 @@ import { * * @template H The harness type. */ -export type HarnessElement = H extends Harness - ? ElementWithHarness - : never; +export type HarnessElement = + H extends Harness ? ElementWithHarness : never; /** * Harnesses will attach themselves to their element for convenience. @@ -898,6 +897,9 @@ export class Harness { }; const superMatches = this.element.matches; + // TODO: go/ts60upgrade - Fix after TS 6.0 upgrade. + // TS2322: Type '(selector: string) => boolean' is not assignable to type '...'. + // @ts-ignore element.matches = (selector: string) => { return superMatches.call(element, getSelector(selector)); };