( target: EventTarget, type: string, detail?: unknown, options?: CustomEventInit, )
| 187 | * @returns {boolean} Returns the result value. |
| 188 | */ |
| 189 | export function emit( |
| 190 | target: EventTarget, |
| 191 | type: string, |
| 192 | detail?: unknown, |
| 193 | options?: CustomEventInit, |
| 194 | ): boolean { |
| 195 | return target.dispatchEvent(new CustomEvent(type, { |
| 196 | ...defaultEventOptions, |
| 197 | detail, |
| 198 | ...options, |
| 199 | })); |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Get the real event target by checking composed path. |
no outgoing calls
no test coverage detected
searching dependent graphs…