File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22module . exports = {
33 moduleFileExtensions : [ "js" , "ts" ] ,
44 globals : {
5- "ts-jest" : {
6- isolatedModules : true
7- }
5+
86 } ,
97 transform : {
10- "^.+\\.ts?$" : "ts-jest"
8+ "^.+\\.ts?$" : [ "ts-jest" , { isolatedModules : true } ]
119 } ,
1210 testRegex : ".+\\.test\\.ts?$" ,
1311 testEnvironment : "jsdom" ,
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import {
1818 StandardContextType ,
1919 StandardIntent ,
2020 ContextType ,
21+ FDC3EventType ,
22+ EventHandler ,
2123} from '..' ;
2224import { StandardContextsSet } from '../internal/contextConfiguration' ;
2325import { StandardIntentsSet } from '../internal/intentConfiguration' ;
@@ -124,6 +126,10 @@ export function addContextListener(
124126 }
125127}
126128
129+ export function addEventListener ( eventType : FDC3EventType , handler : EventHandler ) : Promise < Listener > {
130+ return rejectIfNoGlobal ( ( ) => window . fdc3 . addEventListener ( eventType , handler ) ) ;
131+ }
132+
127133export function getUserChannels ( ) : Promise < Channel [ ] > {
128134 return rejectIfNoGlobal ( ( ) => {
129135 //fallback to getSystemChannels for FDC3 <2.0 implementations
You can’t perform that action at this time.
0 commit comments