-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip(block-tool-adapter): commit current state of implementation
- Loading branch information
1 parent
38cfaa1
commit 97f721f
Showing
10 changed files
with
454 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ reports/ | |
# stryker temp files | ||
.stryker-tmp | ||
*.tsbuildinfo | ||
|
||
.DS_Store |
10 changes: 10 additions & 0 deletions
10
packages/dom-adapters/src/BlockToolAdapter/EventTarget.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { EventMap } from './EventMap'; | ||
|
||
/** | ||
* Augment EventTarget's addEventListener method to accept CustomEvent | ||
*/ | ||
declare global { | ||
interface EventTarget { | ||
addEventListener<T extends keyof EventMap>(type: T, listener: (event: EventMap[T]) => void): void; | ||
} | ||
} |
Oops, something went wrong.