import { expectType } from 'tsd' import { $ } from '@wdio/globals' import type { RectReturn } from '@wdio/protocols' ;(async () => { const el = $('foxo') // types validations for getSize command expectType>(await el.getSize()) expectType((await el.getSize()).height) expectType((await el.getSize()).width) expectType(await el.getSize('height')) expectType(await el.getSize('width')) // types validations for getLocation command expectType>(await el.getLocation()) expectType((await el.getLocation()).x) expectType((await el.getLocation()).y) expectType(await el.getLocation('x')) expectType(await el.getLocation('y')) })