quidproquo-core 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  import { EventTransformResponseResultActionRequester } from './EventTransformResponseResultActionTypes';
2
- export declare function askEventTransformResponseResult<TOutputRes, TInputRes, TTransformedEventParams>(response: TInputRes, transformedEventParams: TTransformedEventParams): EventTransformResponseResultActionRequester<TOutputRes>;
2
+ export declare function askEventTransformResponseResult<TOutputRes, TInputRes, TTransformedEventParams>(response: TInputRes, transformedEventParams: TTransformedEventParams): EventTransformResponseResultActionRequester<TInputRes, TTransformedEventParams, TOutputRes>;
@@ -1,12 +1,12 @@
1
1
  import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
2
2
  import { EventActionType } from './EventActionType';
3
- export interface EventTransformResponseResultActionPayload {
4
- response: any;
5
- transformedEventParams: any;
3
+ export interface EventTransformResponseResultActionPayload<R, T> {
4
+ response: R;
5
+ transformedEventParams: T;
6
6
  }
7
- export interface EventTransformResponseResultAction extends Action<EventTransformResponseResultActionPayload> {
7
+ export interface EventTransformResponseResultAction<R, T> extends Action<EventTransformResponseResultActionPayload<R, T>> {
8
8
  type: EventActionType.TransformResponseResult;
9
- payload: EventTransformResponseResultActionPayload;
9
+ payload: EventTransformResponseResultActionPayload<R, T>;
10
10
  }
11
- export type EventTransformResponseResultActionProcessor<TRes> = ActionProcessor<EventTransformResponseResultAction, TRes>;
12
- export type EventTransformResponseResultActionRequester<TRes> = ActionRequester<EventTransformResponseResultAction, TRes>;
11
+ export type EventTransformResponseResultActionProcessor<R, T, TRes> = ActionProcessor<EventTransformResponseResultAction<R, T>, TRes>;
12
+ export type EventTransformResponseResultActionRequester<R, T, TRes> = ActionRequester<EventTransformResponseResultAction<R, T>, TRes>;
@@ -1 +1 @@
1
- export declare function askProcessEvent(...eventArguments: any): Generator<import("../actions/event").EventTransformResponseResultAction | import("../actions/event").EventTransformEventParamsAction<any> | import("../actions/event").EventAutoRespondAction<unknown> | import("../actions/event").EventMatchStoryAction<unknown> | import("../actions/system").SystemExecuteStoryAction<unknown[]>, unknown, any>;
1
+ export declare function askProcessEvent(...eventArguments: any): Generator<import("../actions/event").EventTransformEventParamsAction<any> | import("../actions/event").EventAutoRespondAction<unknown> | import("../actions/event").EventTransformResponseResultAction<any, unknown> | import("../actions/event").EventMatchStoryAction<unknown> | import("../actions/system").SystemExecuteStoryAction<unknown[]>, unknown, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-core",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",
@@ -11,7 +11,7 @@
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "clean": "npx rimraf lib",
13
13
  "build": "npm run clean && tsc",
14
- "watch": "npm run clean && tsc -w"
14
+ "watch": "tsc -w"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",