diff --git a/ts/typedrequest.classes.typedrequest.ts b/ts/typedrequest.classes.typedrequest.ts index 78d1ece..181af24 100644 --- a/ts/typedrequest.classes.typedrequest.ts +++ b/ts/typedrequest.classes.typedrequest.ts @@ -7,6 +7,9 @@ export type IPostMethod = ( ) => void | Promise; export class TypedRequest { + /** + * this typedrouter allows us to have easy async request response cycles + */ public typedRouterRef: TypedRouter; public webrequest = new plugins.webrequest.WebRequest(); @@ -59,6 +62,7 @@ export class TypedRequest; + // having a typedrouter allows us to work with async request response cycles. if (this.typedRouterRef) { responseInterest = await this.typedRouterRef.fireEventInterestMap.addInterest( payload.correlation.id,