redux-action-buffer
redux-action-buffer copied to clipboard
TypeScript complains about missing default export
In the docs you show the following:
import createActionBuffer from 'redux-action-buffer'
createActionBuffer is not a default export though (it is exported directly through module.exports), so TypeScript complains. Babel copes with it as it seems to be more permissive.
We could either introduce a transpiler, or mimic what Babel does with default exports currently:
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createActionBuffer;
function createActionBuffer() {
// ...
}
What do you think?
sounds sensible, I am good with either of those options