From 17d5984ce7149eba89f1169f0b5d8da908673bc8 Mon Sep 17 00:00:00 2001 From: nandi95 <41805560+nandi95@users.noreply.github.com> Date: Mon, 21 Feb 2022 00:34:25 +0000 Subject: [PATCH] fix: added missing find overrides (#1333) --- src/domWrapper.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/domWrapper.ts b/src/domWrapper.ts index cdb062cd1..9744342b6 100644 --- a/src/domWrapper.ts +++ b/src/domWrapper.ts @@ -21,7 +21,15 @@ export class DOMWrapper extends BaseWrapper { return this.element.__vueParentComponent } - find(selector: string | RefSelector): DOMWrapper { + find( + selector: K + ): DOMWrapper + find( + selector: K + ): DOMWrapper + find(selector: string): DOMWrapper + find(selector: string | RefSelector): DOMWrapper + find(selector: string | RefSelector): DOMWrapper { const result = super.find(selector) if (result.exists() && isRefSelector(selector)) { return this.element.contains(result.element)