webdriverio / expect-webdriverio

WebdriverIO Assertion Library
https://webdriver.io
MIT License
76 stars 52 forks source link

`ChainablePromiseElement` is of type `any` #1699

Open aboyton opened 1 week ago

aboyton commented 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.

This leads to ChainablePromiseElement being of type any when you import this code.

christian-bromann commented 1 week ago

@aboyton thanks for reporting! I think we can replace all ChainablePromiseElement types with just WebdriverIO.Element