diff --git a/ts/typedrequest.classes.typedrequest.ts b/ts/typedrequest.classes.typedrequest.ts index d8bcc8b..7b8e803 100644 --- a/ts/typedrequest.classes.typedrequest.ts +++ b/ts/typedrequest.classes.typedrequest.ts @@ -21,7 +21,7 @@ export class TypedRequest routes a typed request object to request fire event * @param typedRequestArg */ - public async routeAndAddResponse(typedRequestArg: plugins.typedRequestInterfaces.ITypedRequest) { + public async routeAndAddResponse(typedRequestArg: T) { if (!typedRequestArg?.correlation?.phase || typedRequestArg.correlation.phase === 'request') { const typedHandler = this.getTypedHandlerForMethod(typedRequestArg.method); diff --git a/ts/typedrequest.classes.typedtarget.ts b/ts/typedrequest.classes.typedtarget.ts index 44f6d58..591ae50 100644 --- a/ts/typedrequest.classes.typedtarget.ts +++ b/ts/typedrequest.classes.typedtarget.ts @@ -6,6 +6,7 @@ export type IPostMethod = ( ) => Promise; /** + * this is an alternative to a post url supplied in `new Typedrequest(new TypedTarget(...), 'someMethodName')` * enables the use of custom post functions * used for things like broadcast channels * e.g. @designestate/dees-comms