diff --git a/src/vueWrapper.ts b/src/vueWrapper.ts index 2141bfee4..74f00d8d9 100644 --- a/src/vueWrapper.ts +++ b/src/vueWrapper.ts @@ -125,12 +125,12 @@ export class VueWrapper { get( selector: K - ): DOMWrapper + ): Omit, 'exists'> get( selector: K - ): DOMWrapper - get(selector: string): DOMWrapper - get(selector: string): DOMWrapper { + ): Omit, 'exists'> + get(selector: string): Omit, 'exists'> + get(selector: string): Omit, 'exists'> { const result = this.find(selector) if (result instanceof DOMWrapper) { return result @@ -169,13 +169,13 @@ export class VueWrapper { getComponent( selector: new () => T - ): VueWrapper + ): Omit, 'exists'> getComponent( selector: FindComponentSelector - ): VueWrapper + ): Omit, 'exists'> getComponent( selector: any - ): VueWrapper { + ): Omit, 'exists'> { const result = this.findComponent(selector) if (result instanceof VueWrapper) {