diff --git a/node_modules/event-target-shim/index.d.ts b/node_modules/event-target-shim/index.d.ts index 7a5bfc7..ba5e7d8 100644 --- a/node_modules/event-target-shim/index.d.ts +++ b/node_modules/event-target-shim/index.d.ts @@ -359,7 +359,7 @@ export declare namespace defineCustomEventTarget { /** * The interface of CustomEventTarget. */ - type CustomEventTarget, TMode extends "standard" | "strict"> = EventTarget & defineEventAttribute.EventAttributes; + type CustomEventTarget, TMode extends "standard" | "strict"> = EventTarget & defineEventAttribute.EventAttributes; } /** * Define an event attribute. @@ -368,14 +368,12 @@ export declare namespace defineCustomEventTarget { * @param _eventClass Unused, but to infer `Event` class type. * @deprecated Use `getEventAttributeValue`/`setEventAttributeValue` pair on your derived class instead because of static analysis friendly. */ -export declare function defineEventAttribute(target: TEventTarget, type: TEventType, _eventClass?: TEventConstrucor): asserts target is TEventTarget & defineEventAttribute.EventAttributes>>; +export declare function defineEventAttribute(target: TEventTarget, type: TEventType, _eventClass?: TEventConstrucor): asserts target is TEventTarget & defineEventAttribute.EventAttributes; export declare namespace defineEventAttribute { /** * Definition of event attributes. */ - type EventAttributes, TEventMap extends Record> = { - [P in string & keyof TEventMap as `on${P}`]: EventTarget.CallbackFunction | null; - }; + type EventAttributes> = Record | null>; } /** * Set the warning handler.