import { expect, tap } from '@pushrocks/tapbundle'; import * as deesComms from '../ts/index'; let deesCommsTest: deesComms.DeesComms; tap.test('first test', async (tools) => { deesCommsTest = new deesComms.DeesComms(); deesCommsTest.createTypedHandler('test', async (requestData) => { return {'hitheretoo': 'greetings'}; }); // lets fire a request const typedrequest = deesCommsTest.createTypedRequest('test'); const result = await typedrequest.fire({ 'hithere': 'hello' }); console.log(JSON.stringify(result)); }); tap.start();