Socket
Socket
Sign inDemoInstall

little-state-machine

Package Overview
Dependencies
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

little-state-machine - npm Package Compare versions

Comparing version 4.1.0-beta.2 to 4.1.0-beta.3

5

dist/types.d.ts

@@ -5,5 +5,8 @@ import * as React from 'react';

export declare type AnyCallback = (state: GlobalState, payload: any) => GlobalState;
export declare type ActionOptions = {
persist: boolean;
};
export declare type AnyActions<TCallback> = Record<string, TCallback>;
export declare type ActionsOutput<TCallback extends AnyCallback, TActions extends AnyActions<TCallback>> = {
[K in keyof TActions]: (payload: Parameters<TActions[K]>[1]) => void;
[K in keyof TActions]: (payload: Parameters<TActions[K]>[1], options: ActionOptions) => void;
};

@@ -10,0 +13,0 @@ export declare type StateMachineContextValue = {

2

package.json

@@ -8,3 +8,3 @@ {

],
"version": "4.1.0-beta.2",
"version": "4.1.0-beta.3",
"main": "dist/little-state-machine.js",

@@ -11,0 +11,0 @@ "module": "dist/little-state-machine.es.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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