mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
loosen type
This commit is contained in:
@@ -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