pull/21833/head
Luke Barnard 2017-12-13 17:32:46 +00:00
parent 950f591b3f
commit 6b02f59fb7
3 changed files with 6 additions and 6 deletions

View File

@ -19,11 +19,11 @@ import { asyncAction } from './actionCreators';
const GroupActions = {};
/**
* Create a GroupActions.fetchJoinedGroups action that represents an
* asyncronous request to fetch the groups to which a user is joined.
* Create a GroupActions.fetchJoinedGroups action that represents an
* asynchronous request to fetch the groups to which a user is joined.
*
* @param {MatrixClient} matrixClient the matrix client to query.
* @returns {function} an asyncronous action of type
* @returns {function} an asynchronous action of type
* GroupActions.fetchJoinedGroups.
*/
GroupActions.fetchJoinedGroups = function(matrixClient) {

View File

@ -27,7 +27,7 @@ const TagOrderActions = {};
*
* @param {MatrixClient} matrixClient the matrix client to set the account
* data on.
* @returns {function} an asyncronous action of type
* @returns {function} an asynchronous action of type
* TagOrderActions.commitTagOrdering.
*/
TagOrderActions.commitTagOrdering = function(matrixClient) {

View File

@ -21,8 +21,8 @@ limitations under the License.
* suffix determining whether it is pending, successful or
* a failure.
* @param {function} fn a function that returns a Promise.
* @returns {function} an asyncronous action creator - a function that uses its
* single argument as a dispatch function.
* @returns {function} an asynchronous action creator - a function that uses
* its single argument as a dispatch function.
*/
export function asyncAction(id, fn) {
return (dispatch) => {