Comparing version 1.0.3 to 1.1.0
@@ -12,5 +12,7 @@ declare class Eventin<EventType extends string, EventTypeMapData extends { | ||
}): () => void; | ||
private unlisten; | ||
unlisten<E extends EventType>(eventType: E, listener: (data: EventTypeMapData[E]) => void, { once, }?: { | ||
once?: boolean; | ||
}): void; | ||
unlistenAll<E extends EventType>(eventType?: E): void; | ||
} | ||
export default Eventin; |
{ | ||
"name": "eventin", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Type-constrainted event emitter.", | ||
@@ -30,5 +30,5 @@ "keywords": [ | ||
"@typescript-eslint/eslint-plugin": "^5.36.2", | ||
"@typescript-eslint/parser": "^5.38.0", | ||
"eslint": "^8.23.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-standard-with-typescript": "^22.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
@@ -35,0 +35,0 @@ "eslint-plugin-n": "^15.2.5", |
@@ -72,3 +72,3 @@ import getRandomString from './get_random_string'; | ||
private unlisten<E extends EventType>( | ||
unlisten<E extends EventType>( | ||
eventType: E, | ||
@@ -75,0 +75,0 @@ listener: (data: EventTypeMapData[E]) => void, |
@@ -7,5 +7,6 @@ { | ||
"esModuleInterop": true, | ||
"skipLibCheck": true | ||
"skipLibCheck": true, | ||
"strictNullChecks": true | ||
}, | ||
"exclude": ["./dist"] | ||
} |
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
10590
12
246