(selector: string)
| 24 | * ``` |
| 25 | */ |
| 26 | const query = (selector: string): QueryDecorator => { |
| 27 | return (target: any, propertyKey: string | symbol) => { |
| 28 | Object.defineProperty(target, propertyKey, { |
| 29 | get(this: UI5Element) { |
| 30 | return this.shadowRoot?.querySelector(selector) as HTMLElement; |
| 31 | }, |
| 32 | }); |
| 33 | }; |
| 34 | }; |
| 35 | |
| 36 | export default query; |
no outgoing calls
no test coverage detected
searching dependent graphs…