File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @typescriptplayground/custom-event-target" ,
3- "version" : " 0.1.0 " ,
3+ "version" : " 0.1.1 " ,
44 "exports" : {
55 "." : " ./src/index.ts"
66 },
Original file line number Diff line number Diff line change 33 *
44 * @template Detail Type of the `detail` property in the CustomEvent
55 */
6- export type CustomEventListener < Detail = unknown > =
6+ // deno-lint-ignore-file no-explicit-any
7+ export type CustomEventListener < Detail = any > =
78 ( event : CustomEvent < Detail > ) => void ;
89
910/**
1011 * An object that can handle {@link CustomEvent} events via its `handleEvent` method.
1112 *
1213 * @template Detail Type of the `detail` property in the CustomEvent
1314 */
14- export interface CustomEventListenerObject < Detail = unknown > {
15+ export interface CustomEventListenerObject < Detail = any > {
1516 /**
1617 * Called when an event of the specified type is dispatched.
1718 *
@@ -26,7 +27,7 @@ export interface CustomEventListenerObject<Detail = unknown> {
2627 *
2728 * @template Detail Type of the `detail` property in the CustomEvent
2829 */
29- export type CustomEventListenerOrCustomEventListenerObject < Detail = unknown > =
30+ export type CustomEventListenerOrCustomEventListenerObject < Detail = any > =
3031 | CustomEventListener < Detail >
3132 | CustomEventListenerObject < Detail >
3233
You can’t perform that action at this time.
0 commit comments