Skip to content

Commit

Permalink
wip(block-tool-adapter): commit current state of implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyamore88 committed Dec 23, 2023
1 parent 38cfaa1 commit 97f721f
Show file tree
Hide file tree
Showing 10 changed files with 454 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ reports/
# stryker temp files
.stryker-tmp
*.tsbuildinfo

.DS_Store
10 changes: 10 additions & 0 deletions packages/dom-adapters/src/BlockToolAdapter/EventTarget.d.ts
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;
}
}
Loading

0 comments on commit 97f721f

Please sign in to comment.