aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/types')
-rw-r--r--packages/server/src/types/fastify.d.ts11
-rw-r--r--packages/server/src/types/index.d.ts9
2 files changed, 20 insertions, 0 deletions
diff --git a/packages/server/src/types/fastify.d.ts b/packages/server/src/types/fastify.d.ts
new file mode 100644
index 0000000..ebaaac2
--- /dev/null
+++ b/packages/server/src/types/fastify.d.ts
@@ -0,0 +1,11 @@
+import { FastifyRequest, RequestGenericInterface } from "fastify";
+import { ReplyGenericInterface } from "fastify/types/reply";
+
+export interface Request extends RequestGenericInterface {
+ Params: Record<string, string>,
+ Querystring: Record<string, string>
+}
+
+export interface Route extends Request, ReplyGenericInterface {}
+
+export type CoolFastifyRequest = FastifyRequest<Route>; \ No newline at end of file
diff --git a/packages/server/src/types/index.d.ts b/packages/server/src/types/index.d.ts
new file mode 100644
index 0000000..beb5f49
--- /dev/null
+++ b/packages/server/src/types/index.d.ts
@@ -0,0 +1,9 @@
+export type Settings = {
+ host: string,
+ port: number,
+ dev_port: number,
+ title: string,
+ about: string,
+ base_dir: string,
+ production: boolean
+} \ No newline at end of file