Breaking change from 3.2 to 3.3
sharafian opened this issue · comments
In version 3.2 when using Reduct from typescript, the following was a valid usage:
import App from './App'
import * as reduct from 'reduct'
const app = reduct()(App)
In version 3.3, you get the following error:
src/index.ts:5:15 - error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof import("./node_modules/reduct/dist/index")' has no compatible call signatures.
5 const app = reduct()(App)
In order to make it work, the import statement must be changed to:
import App from './App'
import reduct from 'reduct'
const app = reduct()(App)