From 9ece6290fc6b50d201bd8b26d23e2f55089b0902 Mon Sep 17 00:00:00 2001 From: Ken Sodemann Date: Wed, 29 Dec 2021 15:47:51 -0600 Subject: [PATCH] fix: add methods from baseWrapper to the wrapperLike interface (#1180) --- src/interfaces/wrapperLike.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/interfaces/wrapperLike.ts b/src/interfaces/wrapperLike.ts index 9d56bfba1..db30745db 100644 --- a/src/interfaces/wrapperLike.ts +++ b/src/interfaces/wrapperLike.ts @@ -1,3 +1,5 @@ +import { DomEventNameWithModifier } from 'src/constants/dom-events' +import { TriggerOptions } from 'src/createDomEvent' import { DefinedComponent, FindAllComponentsSelector, @@ -92,11 +94,24 @@ export default interface WrapperLike { html(): string + classes(): string[] + classes(className: string): boolean + classes(className?: string): string[] | boolean + attributes(): { [key: string]: string } attributes(key: string): string attributes(key?: string): { [key: string]: string } | string + text(): string exists(): boolean setValue(value: any): Promise + + isVisible(): boolean + + trigger( + eventString: DomEventNameWithModifier, + options?: TriggerOptions + ): Promise + trigger(eventString: string, options?: TriggerOptions): Promise }