@anephenix/event-emitter 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,7 +83,7 @@ setup of the EventEmitter instance, like this:
83
83
 
84
84
  ```typescript
85
85
  type MyEvents = {
86
- message: (data: string) => void;
86
+ message: (data: { name: string; text: string }) => void;
87
87
  join: (username: string) => void;
88
88
  leave: (username: string) => void;
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anephenix/event-emitter",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "A small EventEmitter library",
5
5
  "author": "Paul Jensen <paul@anephenix.com>",
6
6
  "maintainers": [
@@ -22,14 +22,8 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "type": "module",
25
- "main": ".dist/index.js",
25
+ "main": "./dist/index.js",
26
26
  "types": "./dist/index.d.ts",
27
- "exports": {
28
- ".": {
29
- "import": "./dist/index.js",
30
- "types": "./dist/index.d.ts"
31
- }
32
- },
33
27
  "files": [
34
28
  "dist",
35
29
  "src"
@@ -1,5 +1,6 @@
1
1
  // Generic type for an event map where each key has a listener signature
2
- type EventMap = Record<string, (...args: unknown[]) => void>;
2
+ // biome-ignore lint/suspicious/noExplicitAny:
3
+ type EventMap = Record<string, (...args: any[]) => void>;
3
4
 
4
5
  class EventEmitter<T extends EventMap> {
5
6
  events: { [K in keyof T]?: T[K][] } = {};