feat: implementing server framework
This commit is contained in:
20
server/globalTypes.d.ts
vendored
Normal file
20
server/globalTypes.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user