Merge pull request #1 from inato/improves-tryCatch-comment
fix comment regarding tryCatch signature
This commit is contained in:
commit
7c264c8f29
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export const asyncDivide = async (a: number, b: number) => {
|
||||||
//
|
//
|
||||||
// HINT: TaskEither has a special constructor to transform a Promise<T> into
|
// HINT: TaskEither has a special constructor to transform a Promise<T> into
|
||||||
// a TaskEither<Error, T>:
|
// a TaskEither<Error, T>:
|
||||||
// - `TaskEither.tryCatch(onReject: err => leftValue, onResolve: val => rightValue)(promise)`
|
// - `TaskEither.tryCatch(f: () => promise, onReject: reason => leftValue)`
|
||||||
|
|
||||||
export const asyncSafeDivideWithError: (
|
export const asyncSafeDivideWithError: (
|
||||||
a: number,
|
a: number,
|
||||||
|
|
Reference in a new issue