You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
276 B

  1. export class Status {
  2. constructor(
  3. public ready: boolean,
  4. public result: object,
  5. public error: any
  6. ) {}
  7. static valueOf(
  8. { ready, result, error }:
  9. { ready: boolean, result: object, error: any }
  10. ) {
  11. return new Status(ready, result, error)
  12. }
  13. }