// Type definitions for flux-standard-action 0.5.0 // Project: https://github.com/acdlite/flux-standard-action // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module "flux-standard-action" { export interface ErrorAction extends Action { error: boolean; } export interface Action { type: string; payload?: T; error?: boolean; } // Usage: var action: Action & AnyMeta; export interface AnyMeta { meta: any } // Usage: var action: Action & TypedMeta; export interface TypedMeta { meta: T } export function isFSA(action: any): boolean; export function isError(action: any): boolean; }