2023-09-19 13:03:19 +00:00
|
|
|
---
|
|
|
|
sidebar_label: CommonEventEmitter.emit
|
|
|
|
---
|
|
|
|
|
|
|
|
# CommonEventEmitter.emit() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
interface CommonEventEmitter {
|
|
|
|
emit<Key extends keyof Events>(type: Key, event: Events[Key]): boolean;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
<table><thead><tr><th>
|
2023-09-19 13:03:19 +00:00
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Key
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
event
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Events\[Key\]
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2023-09-19 13:03:19 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
boolean
|