-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmod.ts
31 lines (26 loc) · 921 Bytes
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { ErrorData } from "./ErrorHandlers/RhinoError.ts";
/**
* Server classes are generic classes, therefore, they (on their own) do
* not possess a specific set of properties and methods that must be
* followed, (unless the server class is implementing OnServerListening),
* hence, the interface NonSpecificClass defines a "generic" class that can
* return anything.
*/
export interface DecoratedClass {
new (...args: any[]): any;
}
export enum _Result {
OK = 0,
ERR = 1,
}
export type Result = _Result | ErrorData;
// Exports the constants
export * from "./constants.ts";
export * from "./RhinoServer.ts";
export * from "./Router/RhinoEndpoint.ts";
export * from "./Router/RhinoRouter.ts";
export * from "./ErrorHandlers/RhinoError.ts";
export * from "./Request/RhinoRequest.ts";
export * from "./Response/RhinoResponse.ts";
export * from "./Hooks/RhinoHook.ts";
export * from "./RhinoURL.ts";