Skip to content

Commit

Permalink
feat(type-helper): add HasAddEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Dec 27, 2023
1 parent 8f29498 commit ba2b6fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/type-helper/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,10 @@ type JSONArray = JSONValue[];
* Represents an object of Record<string, JSONValues>
*/
type JSONObject = Dictionary<JSONValue>;

/**
* Represents an object that has the ability to add event listeners.
*/
export interface HasAddEventListener {
addEventListener: (type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions) => void;
}

0 comments on commit ba2b6fa

Please sign in to comment.