@0xcda7a/bag-of-tricks
Advanced tools
Comparing version 0.0.2-alpha.4 to 0.0.2-alpha.5
export declare type Action<T extends {}> = (getState: GetState<T>, dispatch: Dispatch<T>) => T | Promise<T> | void | Promise<void>; | ||
export declare type Dispatch<T extends {} = {}> = (action: Action<T>) => Promise<void>; | ||
export declare type GetState<T extends {} = {}> = () => T; | ||
export declare type ActionCreator<T extends {}, U extends any[]> = (...args: U) => Action<T>; | ||
export declare type ActionCreator<T extends {}, U extends readonly any[]> = (...args: U) => Action<T>; | ||
export declare type SelfDispatchingActionCreator<T extends any[]> = (...args: T) => Promise<void>; | ||
@@ -6,0 +6,0 @@ export interface StoreOptions { |
{ | ||
"name": "@0xcda7a/bag-of-tricks", | ||
"version": "0.0.2-alpha.4", | ||
"version": "0.0.2-alpha.5", | ||
"description": "My personal library of patterns and tools for modern web development", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -7,3 +7,3 @@ export type Action<T extends {}> = ( | ||
export type GetState<T extends {} = {}> = () => T; | ||
export type ActionCreator<T extends {}, U extends any[]> = ( | ||
export type ActionCreator<T extends {}, U extends readonly any[]> = ( | ||
...args: U | ||
@@ -10,0 +10,0 @@ ) => Action<T>; |
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
175488