feat: implementing server framework

This commit is contained in:
Daniel Ledda
2022-06-29 08:24:00 +02:00
parent c628f6b46e
commit bd177c7f09
17 changed files with 210 additions and 55 deletions

20
server/globalTypes.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
type JSONValue =
| string
| number
| boolean
| JSONObject
| JSONArray;
type JSONArray = Array<JSONValue>;
type Maybe<T> = {
just: T,
error: null,
} | {
just: null,
error: { message: string },
};
interface JSONObject {
[x: string]: JSONValue;
}