Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/vueWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ export class VueWrapper<T extends ComponentPublicInstance> {

get<K extends keyof HTMLElementTagNameMap>(
selector: K
): DOMWrapper<HTMLElementTagNameMap[K]>
): Omit<DOMWrapper<HTMLElementTagNameMap[K]>, 'exists'>
get<K extends keyof SVGElementTagNameMap>(
selector: K
): DOMWrapper<SVGElementTagNameMap[K]>
get<T extends Element>(selector: string): DOMWrapper<T>
get(selector: string): DOMWrapper<Element> {
): Omit<DOMWrapper<SVGElementTagNameMap[K]>, 'exists'>
get<T extends Element>(selector: string): Omit<DOMWrapper<T>, 'exists'>
get(selector: string): Omit<DOMWrapper<Element>, 'exists'> {
const result = this.find(selector)
if (result instanceof DOMWrapper) {
return result
Expand Down Expand Up @@ -169,13 +169,13 @@ export class VueWrapper<T extends ComponentPublicInstance> {

getComponent<T extends ComponentPublicInstance>(
selector: new () => T
): VueWrapper<T>
): Omit<VueWrapper<T>, 'exists'>
getComponent<T extends ComponentPublicInstance>(
selector: FindComponentSelector
): VueWrapper<T>
): Omit<VueWrapper<T>, 'exists'>
getComponent<T extends ComponentPublicInstance>(
selector: any
): VueWrapper<T> {
): Omit<VueWrapper<T>, 'exists'> {
const result = this.findComponent(selector)

if (result instanceof VueWrapper) {
Expand Down