Skip to content

Commit

Permalink
refactor(thenP): add alias then
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Nov 25, 2018
1 parent a4c3475 commit 3ebd1ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,8 @@ declare namespace RamdaAdjunct {
*/
thenP<T>(onFulfilled: Function, thenable: Promise<T>): Promise<T>;
thenP<T>(onFulfilled: Function): (thenable: Promise<T>) => Promise<T>;
then<T>(onFulfilled: Function, thenable: Promise<T>): Promise<T>;
then<T>(onFulfilled: Function): (thenable: Promise<T>) => Promise<T>;

/**
* Runs the given list of functions in order with the supplied object, then returns the object.
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export { default as allP } from './allP';
export { default as resolveP } from './resolveP';
export { default as rejectP } from './rejectP';
export { default as thenP } from './thenP';
export { default as then } from './thenP';
export { default as Y } from './Y';
export { default as seq } from './seq';
export { default as sequencing } from './seq';
Expand Down
1 change: 1 addition & 0 deletions src/thenP.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { invoker } from 'ramda';
*
* @func thenP
* @memberOf RA
* @aliases then
* @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
* @deprecated since v2.12.0; available in ramda@0.26.0 as R.then
* @category Function
Expand Down

0 comments on commit 3ebd1ee

Please sign in to comment.