You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2026-05-16 09:21:12 +02:00
refactoring middleware rendering methods
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import {Error} from "./Error";
|
||||
|
||||
export class Message<T>{
|
||||
constructor(public errors:Error,public result:T){}
|
||||
public error:Error = null;
|
||||
public result:T = null;
|
||||
constructor(error:Error, result:T){
|
||||
this.error = error;
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user