@nmtjs/ws-transport 0.15.0-beta.15 → 0.15.0-beta.16

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.
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Async, OneOf } from '@nmtjs/common';
1
+ import type { MaybePromise, OneOf } from '@nmtjs/common';
2
2
  import type { Hooks } from 'crossws';
3
3
  export type WsTransportServerRequest = {
4
4
  url: URL;
@@ -75,7 +75,7 @@ export type WsAdapterParams<R extends keyof WsTransportRuntimes = keyof WsTransp
75
75
  runtime?: WsTransportRuntimes[R];
76
76
  };
77
77
  export interface WsAdapterServer {
78
- stop: () => Async<any>;
79
- start: () => Async<string>;
78
+ stop: () => MaybePromise<any>;
79
+ start: () => MaybePromise<string>;
80
80
  }
81
81
  export type WsAdapterServerFactory<R extends keyof WsTransportRuntimes = keyof WsTransportRuntimes> = (params: WsAdapterParams<R>) => WsAdapterServer;
package/package.json CHANGED
@@ -12,20 +12,20 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.56.0",
15
- "@nmtjs/client": "0.15.0-beta.15",
16
- "@nmtjs/common": "0.15.0-beta.15",
17
- "@nmtjs/protocol": "0.15.0-beta.15",
18
- "@nmtjs/gateway": "0.15.0-beta.15"
15
+ "@nmtjs/client": "0.15.0-beta.16",
16
+ "@nmtjs/gateway": "0.15.0-beta.16",
17
+ "@nmtjs/common": "0.15.0-beta.16",
18
+ "@nmtjs/protocol": "0.15.0-beta.16"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@types/bun": "^1.3.0",
22
22
  "@types/deno": "^2.3.0",
23
23
  "@types/node": "^24",
24
24
  "uWebSockets.js": "^20.56.0",
25
- "@nmtjs/common": "0.15.0-beta.15",
26
- "@nmtjs/gateway": "0.15.0-beta.15",
27
- "@nmtjs/core": "0.15.0-beta.15",
28
- "@nmtjs/protocol": "0.15.0-beta.15"
25
+ "@nmtjs/common": "0.15.0-beta.16",
26
+ "@nmtjs/gateway": "0.15.0-beta.16",
27
+ "@nmtjs/core": "0.15.0-beta.16",
28
+ "@nmtjs/protocol": "0.15.0-beta.16"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@types/bun": {
@@ -52,7 +52,7 @@
52
52
  "LICENSE.md",
53
53
  "README.md"
54
54
  ],
55
- "version": "0.15.0-beta.15",
55
+ "version": "0.15.0-beta.16",
56
56
  "scripts": {
57
57
  "clean-build": "rm -rf ./dist",
58
58
  "build": "tsc --declaration --sourcemap",
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Async, OneOf } from '@nmtjs/common'
1
+ import type { MaybePromise, OneOf } from '@nmtjs/common'
2
2
  import type { Hooks } from 'crossws'
3
3
 
4
4
  export type WsTransportServerRequest = {
@@ -114,8 +114,8 @@ export type WsAdapterParams<
114
114
  }
115
115
 
116
116
  export interface WsAdapterServer {
117
- stop: () => Async<any>
118
- start: () => Async<string>
117
+ stop: () => MaybePromise<any>
118
+ start: () => MaybePromise<string>
119
119
  }
120
120
 
121
121
  export type WsAdapterServerFactory<