loosen type

This commit is contained in:
tkqubo committed 2015-11-17 21:15:01 +09:00
1 parent 0932a926dc
commit 534f4e5977
1 file changed
+4 -2
+4 -2
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;
}