Skip to content

Commit

Permalink
Add more /*#__PURE__*/ comments to improve tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh authored and gcanti committed Dec 29, 2020
1 parent a6322a4 commit 90e8273
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/IOEither.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,6 @@ export const traverseSeqArray: <A, E, B>(
/**
* @since 2.9.0
*/
export const sequenceSeqArray: <E, A>(
arr: ReadonlyArray<IOEither<E, A>>
) => IOEither<E, ReadonlyArray<A>> = traverseSeqArray(identity)
export const sequenceSeqArray: <E, A>(arr: ReadonlyArray<IOEither<E, A>>) => IOEither<E, ReadonlyArray<A>> =
/*#__PURE__*/
traverseSeqArray(identity)
4 changes: 3 additions & 1 deletion src/ReaderTaskEither.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,4 +976,6 @@ export const traverseSeqArray: <R, E, A, B>(
*/
export const sequenceSeqArray: <R, E, A>(
arr: ReadonlyArray<ReaderTaskEither<R, E, A>>
) => ReaderTaskEither<R, E, ReadonlyArray<A>> = traverseSeqArray(identity)
) => ReaderTaskEither<R, E, ReadonlyArray<A>> =
/*#__PURE__*/
traverseSeqArray(identity)
4 changes: 3 additions & 1 deletion src/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,4 +526,6 @@ export const traverseSeqArray: <A, B>(f: (a: A) => Task<B>) => (arr: ReadonlyArr
*
* @since 2.9.0
*/
export const sequenceSeqArray: <A>(arr: ReadonlyArray<Task<A>>) => Task<ReadonlyArray<A>> = traverseSeqArray(identity)
export const sequenceSeqArray: <A>(arr: ReadonlyArray<Task<A>>) => Task<ReadonlyArray<A>> =
/*#__PURE__*/
traverseSeqArray(identity)
6 changes: 3 additions & 3 deletions src/TaskEither.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,6 @@ export const traverseSeqArray: <A, B, E>(
*
* @since 2.9.0
*/
export const sequenceSeqArray: <A, E>(
arr: ReadonlyArray<TaskEither<E, A>>
) => TaskEither<E, ReadonlyArray<A>> = traverseSeqArray(identity)
export const sequenceSeqArray: <A, E>(arr: ReadonlyArray<TaskEither<E, A>>) => TaskEither<E, ReadonlyArray<A>> =
/*#__PURE__*/
traverseSeqArray(identity)

0 comments on commit 90e8273

Please sign in to comment.