fix(core): update

This commit is contained in:
2020-12-21 12:07:34 +00:00
parent c8ce7942d5
commit ac43f63daf
5 changed files with 11 additions and 14 deletions

View File

@ -17,8 +17,8 @@ export class DeesComms {
postMethodWithTypedRouter: async (messageArg) => {
this.postMessage(messageArg);
},
typedRouterRef: this.typedrouter
})
typedRouterRef: this.typedrouter,
});
private subscriptionChannel = new BroadcastChannel('dees-comms');
@ -39,10 +39,7 @@ export class DeesComms {
public createTypedRequest<T extends plugins.typedrequestInterfaces.ITypedRequest>(
methodName: T['method']
): TypedRequest<T> {
const typedrequest = new plugins.typedrequest.TypedRequest(
this.typedtarget,
methodName
);
const typedrequest = new plugins.typedrequest.TypedRequest(this.typedtarget, methodName);
return typedrequest;
}
@ -62,6 +59,8 @@ export class DeesComms {
methodArg: T['method'],
handlerFunction: plugins.typedrequest.THandlerFunction<T>
) {
this.typedrouter.addTypedHandler(new plugins.typedrequest.TypedHandler<T>(methodArg, handlerFunction));
this.typedrouter.addTypedHandler(
new plugins.typedrequest.TypedHandler<T>(methodArg, handlerFunction)
);
}
}

View File

@ -7,6 +7,4 @@ export { typedrequestInterfaces, typedrequest };
// thirdparty scope
import { BroadcastChannel as BroadCastChannelPolyfill } from 'broadcast-channel';
export {
BroadCastChannelPolyfill
};
export { BroadCastChannelPolyfill };

View File

@ -1 +1 @@
export * from './dees-comms.classes.deescomms';
export * from './dees-comms.classes.deescomms';