diff --git a/src/index.ts b/src/index.ts index efedbc4fed..f0c0703107 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +// functions import createStore from './createStore' import combineReducers from './combineReducers' import bindActionCreators from './bindActionCreators' @@ -6,6 +7,35 @@ import compose from './compose' import warning from './utils/warning' import __DO_NOT_USE__ActionTypes from './utils/actionTypes' +// types +// store +export { + Dispatch, + Unsubscribe, + Observable, + Observer, + Store, + DeepPartial, + StoreCreator, + StoreEnhancer +} from '..' +// reducers +export { + CombinedState, + PreloadedState, + Reducer, + ReducerFromReducersMapObject, + StateFromReducersMapObject, + ActionFromReducer, + ActionFromReducersMapObject +} from '..' +// action creators +export { ActionCreator, ActionCreatorsMapObject } from '..' +// middleware +export { MiddlewareAPI, Middleware } from '..' +// actions +export { Action, AnyAction } from '..' + /* * This is a dummy function to check if the function name has been altered by minification. * If the function has been minified and NODE_ENV !== 'production', warn the user. diff --git a/test/typescript/tsconfig.json b/test/typescript/tsconfig.json index be426fdcac..497fa459db 100644 --- a/test/typescript/tsconfig.json +++ b/test/typescript/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "lib": ["es2015", "dom"], + "lib": ["es2017", "dom"], "strict": true, "baseUrl": "../..", "paths": { diff --git a/tsconfig.json b/tsconfig.json index 052d09d209..0abee9b5c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,11 +7,11 @@ "dom", "es2017" ] /* Specify library files to be included in the compilation. */, - "allowJs": true /* Allow javascript files to be compiled. */, + // "allowJs": true /* Allow javascript files to be compiled. */, // "checkJs": true, /* Report errors in .js files. */ "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "declaration": true /* Generates corresponding '.d.ts' file. */, + // "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ // "outDir": "." /* Redirect output structure to the directory. */, @@ -21,7 +21,7 @@ "noEmit": true /* Do not emit outputs. */, // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */, + // "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */, /* Strict Type-Checking Options */ "strict": true /* Enable all strict type-checking options. */,