From 1d59d2393a2c6366aad6c08bc28260cf244a490e Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 18 Mar 2024 05:37:16 +0100 Subject: [PATCH] Update test.ts --- utils/generate_types/test/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/generate_types/test/test.ts b/utils/generate_types/test/test.ts index 5087778098..e13c2ac43c 100644 --- a/utils/generate_types/test/test.ts +++ b/utils/generate_types/test/test.ts @@ -331,9 +331,9 @@ playwright.chromium.launch().then(async browser => { } // evaluteHandle with two different return types (ElementHandle) { - const handle = await page.evaluateHandle(() => '' as HTMLInputElement | HTMLTextAreaElement); + const handle = await page.evaluateHandle(() => '' as any as HTMLInputElement | HTMLTextAreaElement); await handle.evaluate(element => element.value); - const assertion: AssertType, typeof handle> = true; + const assertion: AssertType, typeof handle> = true; }