@wisemen/nestjs-async-api 0.0.4 → 0.0.5

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.
@@ -8,10 +8,7 @@ export type AsyncAPIChannelParameters<Address> = {
8
8
  [Param in keyof ExtractParams<Address>]: AsyncAPIParameter;
9
9
  };
10
10
  export type AsyncAPIOperationDefinition = Omit<AsyncAPIOperation, 'messages' | 'channel' | 'reply'> & {
11
- messages?: {
12
- name: string;
13
- constructor: () => unknown;
14
- }[];
11
+ messages?: Function[];
15
12
  };
16
13
  export type AsyncAPIChannelDefinition<Address extends string> = {
17
14
  address: Address;
@@ -13,7 +13,8 @@ export type AsyncAPIChannelParameters<Address> = {
13
13
 
14
14
  export type AsyncAPIOperationDefinition
15
15
  = Omit<AsyncAPIOperation, 'messages' | 'channel' | 'reply'>
16
- & { messages?: { name: string, constructor: () => unknown }[] }
16
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
17
+ & { messages?: Function[] }
17
18
 
18
19
  export type AsyncAPIChannelDefinition<Address extends string> = {
19
20
  address: Address
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisemen/nestjs-async-api",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/lib/index.js"