arkhamjs
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -12,4 +12,7 @@ /** | ||
exports.FluxAction = lib.FluxAction; | ||
exports.FluxDebugLevel = lib.FluxDebugLevel; | ||
exports.FluxMiddlewareType = lib.FluxMiddlewareType; | ||
exports.FluxOptions = lib.FluxOptions; | ||
exports.FluxDebugLevel = lib.FluxDebugLevel; | ||
exports.FluxPluginMethodType = lib.FluxPluginMethodType; | ||
exports.FluxPluginType = lib.FluxPluginType; | ||
@@ -16,0 +19,0 @@ // Store |
@@ -9,2 +9,3 @@ /// <reference types="node" /> | ||
} | ||
export declare type FluxPluginMethodType = (action: FluxAction) => Promise<FluxAction>; | ||
export interface FluxOptions { | ||
@@ -34,3 +35,2 @@ readonly basename?: string; | ||
} | ||
export declare type FluxPluginMethodType = (action: FluxAction) => Promise<FluxAction>; | ||
export interface FluxStorageType { | ||
@@ -40,3 +40,3 @@ readonly getStorageData: (key: string) => Promise<any>; | ||
} | ||
export interface MiddlewareType { | ||
export interface FluxMiddlewareType { | ||
readonly name: string; | ||
@@ -58,3 +58,3 @@ readonly preDispatch?: FluxPluginMethodType; | ||
constructor(); | ||
addMiddleware(middleware: MiddlewareType[]): void; | ||
addMiddleware(middleware: FluxMiddlewareType[]): void; | ||
clearAppData(): Promise<boolean>; | ||
@@ -61,0 +61,0 @@ clearMiddleware(): boolean; |
@@ -1,3 +0,3 @@ | ||
export { Flux, FluxAction, FluxOptions, FluxDebugLevel } from './Flux/Flux'; | ||
export { Flux, FluxAction, FluxDebugLevel, FluxMiddlewareType, FluxOptions, FluxPluginMethodType, FluxPluginType } from './Flux/Flux'; | ||
export { Store } from './Store/Store'; | ||
export { ArkhamConstants } from './constants/ArkhamConstants'; |
{ | ||
"name": "arkhamjs", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Flux Library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,2 +12,3 @@ /** | ||
export enum FluxDebugLevel {DISABLED, LOGS, DISPATCH} | ||
export type FluxPluginMethodType = (action: FluxAction) => Promise<FluxAction>; | ||
@@ -40,4 +41,2 @@ export interface FluxOptions { | ||
export type FluxPluginMethodType = (action: FluxAction) => Promise<FluxAction>; | ||
export interface FluxStorageType { | ||
@@ -48,3 +47,3 @@ readonly getStorageData: (key: string) => Promise<any>; | ||
export interface MiddlewareType { | ||
export interface FluxMiddlewareType { | ||
readonly name: string; | ||
@@ -123,4 +122,4 @@ readonly preDispatch?: FluxPluginMethodType; | ||
*/ | ||
addMiddleware(middleware: MiddlewareType[]): void { | ||
middleware.forEach((middleObj: MiddlewareType) => { | ||
addMiddleware(middleware: FluxMiddlewareType[]): void { | ||
middleware.forEach((middleObj: FluxMiddlewareType) => { | ||
// Make sure middleware is either a class or object. | ||
@@ -127,0 +126,0 @@ if(!!middleObj && ((typeof middleObj === 'function') || (typeof middleObj === 'object'))) { |
@@ -7,3 +7,11 @@ /** | ||
// Framework | ||
export {Flux, FluxAction, FluxOptions, FluxDebugLevel} from './Flux/Flux'; | ||
export { | ||
Flux, | ||
FluxAction, | ||
FluxDebugLevel, | ||
FluxMiddlewareType, | ||
FluxOptions, | ||
FluxPluginMethodType, | ||
FluxPluginType | ||
} from './Flux/Flux'; | ||
@@ -10,0 +18,0 @@ // Store |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
66045
1166