mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
loosen type
This commit is contained in:
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user