New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

redux-action-type-validator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-action-type-validator

Type validator for redux actions

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

npm version Build Status codecov Dependency Status devDependency Status

redux-action-type-validator

Type validator for redux actions

Installation

npm i --save redux-action-type-validator

Usage

import {list, String} from "tcomb";

const typeofAction = actionTypeValidator(list(String));

export function action (payload) {
    typeofSelectSite(...arguments);
    return {
        type: "ACTION_TYPE",
        payload
    };
}

// Somewhere in your code
action(["some", "string", "here"]); // not throw

action("some"); // throw


Keywords

redux

FAQs

Package last updated on 26 May 2016

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