creating line scrappy works sort of

This commit is contained in:
talksik
2022-05-05 08:07:50 -05:00
parent 149be0e23c
commit d013212054
7 changed files with 56 additions and 20 deletions
@@ -0,0 +1,17 @@
// 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;
constructor(_data: T, _error?: Error) {
this.data = _data;
this.error = _error;
}
}