export function wrapCommand(command, ...wrappers) {
    return (state, dispatch, view) => {
        return command(state, dispatch
            ? function dispatchWithWrappers(tr) {
                for (const wrapper of wrappers) {
                    wrapper(tr);
                }
                return dispatch(tr);
            }
            : undefined, view);
    };
}
//# sourceMappingURL=wrap-command.js.map
