Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
refactor(ts): use namespace instead of module (#67)
Browse files Browse the repository at this point in the history
* refactor(ts): use namespace instead of module

The internal 'module' syntax is deprecated, use the 'namespace' keyword instead.

* refactor(ts): use namespace instead of module

* refactor(ts): use namespace instead of module

* refactor(ts): use namespace instead of module

* refactor(epic): use namespace instead of module
  • Loading branch information
zoltanbedi authored and herflis committed Jan 30, 2018
1 parent 60e12ac commit 365dcce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ import { Content, IContent, ODataApi, ContentTypes } from 'sn-client-js';
* const store = Store.configureStore(myReducer);
* ```
*/
export module Actions {
export namespace Actions {
/**
* Action creator for intializing a sensenet store.
* @param path {string} Path of the root Content
Expand Down Expand Up @@ -860,4 +860,4 @@ export module Actions {
type: 'UPLOAD_CONTENT_FAILURE',
message: error.message
})
}
}
2 changes: 1 addition & 1 deletion src/Epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import 'rxjs/add/operator/catch'
* ```
*/

export module Epics {
export namespace Epics {
/**
* Epic for initialize a sensenet Redux store. It checks the InitSensenetStore Action and calls the necessary ones snycronously. Loads the current content,
* checks the login state with CheckLoginState, fetch the children items with RequestContent and loads the current content related actions with
Expand Down
4 changes: 2 additions & 2 deletions src/Reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Authentication } from 'sn-client-js';
* Following module contains the reducers of sn-redux, some 'reducer groups' and the root reducer which could be passed to the store creator function. Using a root reduces means
* that you define which combination of reducers will be used and eventually defines which type of actions can be called on the store.
*/
export module Reducers {
export namespace Reducers {
/**
* Reducer to handle Actions on the country property in the session object.
* @param {Object} [state=''] Represents the current state.
Expand Down Expand Up @@ -754,4 +754,4 @@ export module Reducers {
export const getChildren = (state) => {
return state.entities
}
}
}
4 changes: 2 additions & 2 deletions src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { schema } from 'normalizr';
*
* ![Normalized content](http://download.sensenet.com/aniko/sn7/jsapidocs/img/normalized-content.png)
*/
export module Schemas {
export namespace Schemas {
/**
* Schema of a Content.
*
Expand All @@ -51,4 +51,4 @@ export module Schemas {
* It represents the ```children``` object of the sn-redux store. It's a parent element of the Content items so it is defined as array of items with the schema content.
*/
export const arrayOfContent = new schema.Array(content);
}
}
4 changes: 2 additions & 2 deletions src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { Repository } from 'sn-client-js';
* );
* ```
*/
export module Store {
export namespace Store {

/**
* Method to create a Redux store that holds the application state.
Expand Down Expand Up @@ -97,4 +97,4 @@ export module Store {
);
}
};
}
}

0 comments on commit 365dcce

Please sign in to comment.