From 4b7cf0af966bba28703e3123736ff297aebbb782 Mon Sep 17 00:00:00 2001 From: dprevost-perso Date: Sun, 3 May 2026 07:10:59 -0400 Subject: [PATCH] Use `ReturnType` for more robust Chainable type --- types/expect-webdriverio.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/expect-webdriverio.d.ts b/types/expect-webdriverio.d.ts index b9dc171f..484faa34 100644 --- a/types/expect-webdriverio.d.ts +++ b/types/expect-webdriverio.d.ts @@ -8,8 +8,8 @@ type Scenario = import('@wdio/types').Frameworks.Scenario type SnapshotResult = import('@vitest/snapshot').SnapshotResult type SnapshotUpdateState = import('@vitest/snapshot').SnapshotUpdateState -type ChainablePromiseElement = import('webdriverio').ChainablePromiseElement -type ChainablePromiseArray = import('webdriverio').ChainablePromiseArray +type ChainablePromiseElement = ReturnType +type ChainablePromiseArray = ReturnType type ExpectLibAsymmetricMatchers = import('expect').AsymmetricMatchers type ExpectLibAsymmetricMatcher = import('expect').AsymmetricMatcher