Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

badburger

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

badburger - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

74

index.d.ts

@@ -1,50 +0,52 @@

export type StateObject = {
[path: string]: any;
};
declare module 'badburger' {
declare type StateObject = {
[path: string]: any;
};
export type ActionsList = {
[actionName: string]: () => StateObject;
};
declare type ActionsList = {
[actionName: string]: () => StateObject;
};
export type HandlersList = {
[actionType: string]: () => StateObject;
};
declare type HandlersList = {
[actionType: string]: () => StateObject;
};
export type Config = {
name: string;
state?: StateObject;
actions?: ActionsList;
handlers?: HandlersList;
};
declare type Config = {
name: string;
state?: StateObject;
actions?: ActionsList;
handlers?: HandlersList;
};
export function createGlobalState(config: Config): void;
declare function createGlobalState(config: Config): void;
export function useGlobalState(name: string, newState?: StateObject): StateObject;
declare function useGlobalState(name: string, newState?: StateObject): StateObject;
export type Actions = {
[actionName: string]: () => void;
};
declare type Actions = {
[actionName: string]: () => void;
};
export function useActions(name: string): Actions;
declare function useActions(name: string): Actions;
export type ActionObject = {
type: string;
[key: string]: any;
};
declare type ActionObject = {
type: string;
[key: string]: any;
};
export type DispatchFunction = {
(actionPath: string): void;
(action: ActionObject): void;
};
declare type DispatchFunction = {
(actionPath: string): void;
(action: ActionObject): void;
};
export function useDispatch(name?: string): DispatchFunction;
declare function useDispatch(name?: string): DispatchFunction;
export type HandlerCallback = {
(action: ActionObject): void;
};
declare type HandlerCallback = {
(action: ActionObject): void;
};
export function useHandler(actionType: string, callback: HandlerCallback): void;
declare function useHandler(actionType: string, callback: HandlerCallback): void;
export function useGenerator(generatorFunction: GeneratorFunction): any;
declare function useGenerator(generatorFunction: GeneratorFunction): any;
export function Provider(props: any): any;
declare function Provider(props: any): any;
}
{
"name": "badburger",
"version": "5.0.2",
"version": "5.0.3",
"description": "State management for React with Redux, made easier.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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