@quilted/events
Advanced tools
Comparing version 0.0.0-preview-20230807232939 to 0.0.0-preview-20230808002856
@@ -53,3 +53,3 @@ import type { AbortBehavior, EventHandler, EventHandlerMap, EventTarget } from './types.ts'; | ||
*/ | ||
get internal(): Pick<EventEmitter<Events>, 'on' | 'once'>; | ||
get internal(): Pick<EventEmitter<EmitterEmitterInternalEvents<Events>>, 'on' | 'once'>; | ||
private _internal?; | ||
@@ -56,0 +56,0 @@ private handleEvent; |
# @quilted/events | ||
## 0.0.0-preview-20230807232939 | ||
## 0.0.0-preview-20230808002856 | ||
### Major Changes | ||
### Patch Changes | ||
- First major version for `@quilted/events` | ||
- Fix type of EventEmitter.internal | ||
## 1.0.1 | ||
### Patch Changes | ||
- [`2bbcef8e`](https://github.com/lemonmade/quilt/commit/2bbcef8e69d2f228a0d23e43acb4f89130e2bbd9) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix type of EventEmitter.internal | ||
## 1.0.0 | ||
@@ -10,0 +16,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "0.0.0-preview-20230807232939", | ||
"version": "0.0.0-preview-20230808002856", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "engines": { |
@@ -71,3 +71,6 @@ import {on as onEvent} from './on.ts'; | ||
*/ | ||
get internal(): Pick<EventEmitter<Events>, 'on' | 'once'> { | ||
get internal(): Pick< | ||
EventEmitter<EmitterEmitterInternalEvents<Events>>, | ||
'on' | 'once' | ||
> { | ||
if (this._internal) { | ||
@@ -142,3 +145,3 @@ return this._internal; | ||
eventTarget, | ||
eventName, | ||
eventName as any, | ||
(event) => { | ||
@@ -145,0 +148,0 @@ this.emit(eventName, event); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164107
2760