starting db connection and cleaning things out

This commit is contained in:
talksik
2022-06-08 05:18:05 -05:00
parent 290387e2f9
commit 52af5de552
44 changed files with 217 additions and 1553 deletions
@@ -0,0 +1,20 @@
// TODO: enforce this or the other sort of thing for the class
// type INirvanaResponse<T> =
// | {
// data: T;
// error?: Error;
// }
// | { data?: T; error: Error };
export default class NirvanaResponse<T> {
data?: T;
error?: Error;
message?: string;
constructor(_data: T, _error?: Error, _message?: string) {
this.data = _data;
this.error = _error;
this.message = _message;
}
}