mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
877 B
877 B
@tauri-apps/api / shell / EventEmitter
Class: EventEmitter<E>
shell.EventEmitter
Type parameters
| Name | Type |
|---|---|
E |
extends string |
Hierarchy
-
EventEmitter↳
Command
Constructors
constructor
new EventEmitter<E>()
Type parameters
| Name | Type |
|---|---|
E |
extends string |
Methods
on
on(event, handler): EventEmitter<E>
Listen to an event from the child process.
Parameters
| Name | Type | Description |
|---|---|---|
event |
E |
The event name. |
handler |
(arg: any) => void |
The event handler. |
Returns
EventEmitter<E>
The this instance for chained calls.