loosen type

This commit is contained in:
tkqubo
2015-09-28 00:52:27 +09:00
parent 0932a926dc
commit 534f4e5977

View File

@@ -14,16 +14,18 @@ declare module "flux-standard-action" {
error?: boolean;
}
// Usage: var action: Action<sring> & AnyMeta;
export interface AnyMeta {
meta: any
}
// Usage: var action: Action<sring> & TypedMeta<string>;
export interface TypedMeta<T> {
meta: T
}
export function isFSA(action: Action<any>): boolean;
export function isFSA(action: any): boolean;
export function isError(action: Action<any>): boolean;
export function isError(action: any): boolean;
}