|
1 | | -exportinterfaceFluxStandardAction<Payload,Meta>{ |
| 1 | +exportinterfaceFluxStandardAction<Payload,Meta=undefined>{ |
2 | 2 | /** |
3 | 3 | * The `type` of an action identifies to the consumer the nature of the action that has occurred. |
4 | 4 | * Two actions with the same `type` MUST be strictly equivalent (using `===`) |
@@ -26,26 +26,26 @@ export interface FluxStandardAction<Payload, Meta> { |
26 | 26 | meta:Meta; |
27 | 27 | } |
28 | 28 |
|
29 | | -exportinterfaceErrorFluxStandardAction<CustomErrorextendsError,Meta>extendsFluxStandardAction<CustomError,Meta>{ |
| 29 | +exportinterfaceErrorFluxStandardAction<CustomErrorextendsError,Meta=undefined>extendsFluxStandardAction<CustomError,Meta>{ |
30 | 30 | error:true; |
31 | 31 | } |
32 | 32 |
|
33 | 33 | /** |
34 | 34 | * Alias for FluxStandardAction. |
35 | 35 | */ |
36 | | -exporttypeFSA<Payload,Meta>=FluxStandardAction<Payload,Meta>; |
| 36 | +exporttypeFSA<Payload,Meta=undefined>=FluxStandardAction<Payload,Meta>; |
37 | 37 |
|
38 | 38 | /** |
39 | 39 | * Alias for ErrorFluxStandardAction. |
40 | 40 | */ |
41 | | -exporttypeErrorFSA<CustomErrorextendsError,Meta>=ErrorFluxStandardAction<CustomError,Meta>; |
| 41 | +exporttypeErrorFSA<CustomErrorextendsError,Meta=undefined>=ErrorFluxStandardAction<CustomError,Meta>; |
42 | 42 |
|
43 | 43 | /** |
44 | 44 | * Returns `true` if `action` is FSA compliant. |
45 | 45 | */ |
46 | | -exportfunctionisFSA<Payload,Meta>(action:any):action isFluxStandardAction<Payload,Meta>; |
| 46 | +exportfunctionisFSA<Payload,Meta=undefined>(action:any):action isFluxStandardAction<Payload,Meta>; |
47 | 47 |
|
48 | 48 | /** |
49 | 49 | * Returns `true` if `action` is FSA compliant error. |
50 | 50 | */ |
51 | | -exportfunctionisError<CustomErrorextendsError,Meta>(action:any):action isErrorFluxStandardAction<CustomError,Meta>; |
| 51 | +exportfunctionisError<CustomErrorextendsError,Meta=undefined>(action:any):action isErrorFluxStandardAction<CustomError,Meta>; |