Comparing version 5.0.2 to 5.0.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
219873
4727
4