mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #19426 from zimme/flux-standard-action
Update flux-standard-action
This commit is contained in:
5
types/flux-standard-action/index.d.ts
vendored
5
types/flux-standard-action/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for flux-standard-action 0.5.0
|
||||
// Project: https://github.com/acdlite/flux-standard-action
|
||||
// Definitions by: Qubo <https://github.com/tkqubo>
|
||||
// Simon Fridlund <https://github.com/zimme>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
@@ -16,12 +17,12 @@ export interface Action<T> {
|
||||
|
||||
/** Usage: `var action: Action<string> & AnyMeta;` */
|
||||
export interface AnyMeta {
|
||||
meta: any
|
||||
meta?: any;
|
||||
}
|
||||
|
||||
/** Usage: `var action: Action<string> & TypedMeta<string>;` */
|
||||
export interface TypedMeta<T> {
|
||||
meta: T
|
||||
meta?: T;
|
||||
}
|
||||
|
||||
export declare function isFSA(action: any): action is Action<any>;
|
||||
|
||||
Reference in New Issue
Block a user