New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

re-reduced

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

re-reduced

A utility toolbelt that reduces boilerplate from your react/redux app

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Re-reduced

A type-safe functional toolbelt for Redux applications

Type reference

Action<T = void>

interface Action<T = void> {
  type: string;
  payload: T;
}

ActionCreator<T = void>

interface ActionCreator<T = void> {
  (): Action;
  (payload: T): Action<T>;
  type: string;
}

AsyncActions<TRun, TSuccess>

interface AsyncActions<TRun, TSuccess> extends ActionCreator<TRun> {
  request: ActionCreator;
  success: ActionCreator<TSuccess>;
  failure: ActionCreator<Error>;
}

ActionHandler<TPayload, TState>

type ActionHandler<TPayload, TState> = (p: TPayload, s: TState) => TState;

ActionHandlerMap

interface ActionHandlerMap<TState> {
  [key: string]: ActionHandler<any, TState>;
}

Api

createAction(type: string): Action

const action = createAction();

Keywords

FAQs

Package last updated on 15 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc