whole create flow with error handling and such

This commit is contained in:
talksik
2022-06-11 09:45:47 -05:00
parent 3342654431
commit e39316eeff
5 changed files with 21 additions and 10 deletions
+7 -1
View File
@@ -6,7 +6,13 @@
// }
// | { data?: T; error: Error };
export default class NirvanaResponse<T> {
export interface INirvanaResponse<T> {
data?: T;
error?: Error;
message?: string;
}
export default class NirvanaResponse<T> implements INirvanaResponse<T> {
data?: T;
error?: Error;
message?: string;