diff --git a/src/Actions.ts b/src/Actions.ts index 131576f..e0824bb 100644 --- a/src/Actions.ts +++ b/src/Actions.ts @@ -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 @@ -860,4 +860,4 @@ export module Actions { type: 'UPLOAD_CONTENT_FAILURE', message: error.message }) -} \ No newline at end of file +} diff --git a/src/Epics.ts b/src/Epics.ts index 09820ca..fe4e7db 100644 --- a/src/Epics.ts +++ b/src/Epics.ts @@ -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 diff --git a/src/Reducers.ts b/src/Reducers.ts index a988b06..5b0b282 100644 --- a/src/Reducers.ts +++ b/src/Reducers.ts @@ -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. @@ -754,4 +754,4 @@ export module Reducers { export const getChildren = (state) => { return state.entities } -} \ No newline at end of file +} diff --git a/src/Schema.ts b/src/Schema.ts index 161f8f1..e1696c7 100644 --- a/src/Schema.ts +++ b/src/Schema.ts @@ -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. * @@ -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); -} \ No newline at end of file +} diff --git a/src/Store.ts b/src/Store.ts index 83d668a..346e0f1 100644 --- a/src/Store.ts +++ b/src/Store.ts @@ -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. @@ -97,4 +97,4 @@ export module Store { ); } }; -} \ No newline at end of file +}