summary refs log tree commit diff
path: root/dist/Server.d.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 21:19:19 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 21:19:19 +0200
commit614d8f14fa2bac5c4f4357d51b4df527bea93c19 (patch)
tree31c97a8c2bc2c73a9cf35a2fe75a15535bde86e7 /dist/Server.d.ts
parentUpdate attachments.ts (diff)
downloadserver-614d8f14fa2bac5c4f4357d51b4df527bea93c19.tar.xz
:sparkles: attachments
Diffstat (limited to 'dist/Server.d.ts')
-rw-r--r--dist/Server.d.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/dist/Server.d.ts b/dist/Server.d.ts
deleted file mode 100644

index f4d12c65..00000000 --- a/dist/Server.d.ts +++ /dev/null
@@ -1,29 +0,0 @@ -/// <reference types="node" /> -import { Application, Router } from "express"; -import { Database } from "lambert-db"; -import { Server as HTTPServer } from "http"; -import "express-async-errors"; -export declare type ServerOptions = { - db: string; - port: number; - host: string; -}; -declare global { - namespace Express { - interface Request { - server: Server; - } - } -} -export declare class Server { - app: Application; - http: HTTPServer; - db: Database; - routes: Router[]; - options: ServerOptions; - constructor(options?: Partial<ServerOptions>); - init(): Promise<void>; - registerRoutes(root: string): Promise<any[]>; - registerRoute(root: string, file: string): any; - destroy(): Promise<void>; -}