fix comment regarding tryCatch signature
This commit is contained in:
parent
7500ab98a0
commit
24888d84f8
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