Skip to content

Commit

Permalink
Expose setValue and setError
Browse files Browse the repository at this point in the history
  • Loading branch information
SalathielGenese committed May 17, 2019
1 parent 7b4a373 commit 056a003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asyncResult.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ export default class AsyncResult<V, E = Error>
errOrVal(): E | V | undefined;
err(): E | undefined;
val(): V | undefined;

setValue( value: V ): void;
setError( error: E ): void;
}

0 comments on commit 056a003

Please sign in to comment.