Open aboyton opened 1 week ago
It seems in https://github.com/webdriverio/webdriverio/commit/986cfe86e8397e77613df7a58e328912b3912663#diff-1f8b28dd371ec47441bd71ea59bd260aba9e766f812392c898c2c436357b78f8 the definition of ChainablePromiseElement was changed to remove the type parameter, but https://github.com/webdriverio/expect-webdriverio/blob/fc4624d6484af5eeabcdd87c38ca3aea0c9e7ff5/types/standalone.d.ts#L3 still has it.
ChainablePromiseElement
This leads to ChainablePromiseElement being of type any when you import this code.
any
@aboyton thanks for reporting! I think we can replace all ChainablePromiseElement types with just WebdriverIO.Element
WebdriverIO.Element
It seems in https://github.com/webdriverio/webdriverio/commit/986cfe86e8397e77613df7a58e328912b3912663#diff-1f8b28dd371ec47441bd71ea59bd260aba9e766f812392c898c2c436357b78f8 the definition of
ChainablePromiseElement
was changed to remove the type parameter, but https://github.com/webdriverio/expect-webdriverio/blob/fc4624d6484af5eeabcdd87c38ca3aea0c9e7ff5/types/standalone.d.ts#L3 still has it.This leads to
ChainablePromiseElement
being of typeany
when you import this code.