@raclettejs/types 0.1.32-nightly → 0.1.32-nightly-1

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.
@@ -0,0 +1,4 @@
1
+ import { Connection } from "mongoose";
2
+ import { DefaultEventsMap, Socket } from "socket.io";
3
+ export type MongooseConnection = Connection;
4
+ export type SocketIO = Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
@@ -0,0 +1,26 @@
1
+ import "fastify";
2
+ import { MongooseConnection, SocketIO } from "./dependencies";
3
+ import { preHandlerHookHandler } from "fastify";
4
+ declare module "fastify" {
5
+ interface FastifyInstance {
6
+ db: MongooseConnection;
7
+ authenticate: preHandlerHookHandler;
8
+ wss: SocketIO;
9
+ eventbus: any;
10
+ redis: any;
11
+ http: any;
12
+ taskManager: any;
13
+ }
14
+ interface FastifyRequest {
15
+ db: MongooseConnection;
16
+ user: any;
17
+ requestParams: any;
18
+ }
19
+ interface RouteOptions {
20
+ skipHeaderValidation?: boolean;
21
+ }
22
+ interface FastifyContextConfig {
23
+ type?: string;
24
+ broadcast?: string[] | boolean;
25
+ }
26
+ }
@@ -0,0 +1,2 @@
1
+ import "./fastify";
2
+ export * from "@raclettejs/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raclettejs/types",
3
- "version": "0.1.32-nightly",
3
+ "version": "0.1.32-nightly-1",
4
4
  "description": "Type definitions for the raclette framework",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://gitlab.com/raclettejs/types",
@@ -21,11 +21,11 @@
21
21
  "typescript": "5.9.3"
22
22
  },
23
23
  "peerDependencies": {
24
- "@raclettejs/core": "^0.1.32-nightly"
24
+ "@raclettejs/core": "^0.1.32-nightly-1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@emnapi/core": "1.9.2",
28
28
  "@emnapi/runtime": "1.9.2",
29
- "@raclettejs/core": "^0.1.32-nightly"
29
+ "@raclettejs/core": "^0.1.32-nightly-1"
30
30
  }
31
31
  }