@colyseus/core 0.17.7 → 0.17.8
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/package.json +1 -1
- package/src/index.ts +5 -0
- package/src/router/index.ts +9 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/router/index.ts
CHANGED
|
@@ -6,9 +6,17 @@ export {
|
|
|
6
6
|
createEndpoint,
|
|
7
7
|
createMiddleware,
|
|
8
8
|
createInternalContext,
|
|
9
|
+
|
|
10
|
+
// Re-export types needed for declaration emit
|
|
11
|
+
type Router,
|
|
12
|
+
type RouterConfig,
|
|
13
|
+
type Endpoint,
|
|
14
|
+
type EndpointOptions,
|
|
15
|
+
type EndpointContext,
|
|
16
|
+
type StrictEndpoint,
|
|
9
17
|
} from "@colyseus/better-call";
|
|
10
18
|
|
|
11
|
-
export {
|
|
19
|
+
export { toNodeHandler };
|
|
12
20
|
|
|
13
21
|
export function bindRouterToServer(server: Server, router: Router) {
|
|
14
22
|
// check if the server is bound to an express app
|