Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93016e9

Browse files
wubJaKXz
authored andcommitted
fix: makemeta optional (default toundefined) (#94)
1 parentb83c9ae commit93016e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/index.d.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exportinterfaceFluxStandardAction<Payload,Meta>{
1+
exportinterfaceFluxStandardAction<Payload,Meta=undefined>{
22
/**
33
* The `type` of an action identifies to the consumer the nature of the action that has occurred.
44
* Two actions with the same `type` MUST be strictly equivalent (using `===`)
@@ -26,26 +26,26 @@ export interface FluxStandardAction<Payload, Meta> {
2626
meta:Meta;
2727
}
2828

29-
exportinterfaceErrorFluxStandardAction<CustomErrorextendsError,Meta>extendsFluxStandardAction<CustomError,Meta>{
29+
exportinterfaceErrorFluxStandardAction<CustomErrorextendsError,Meta=undefined>extendsFluxStandardAction<CustomError,Meta>{
3030
error:true;
3131
}
3232

3333
/**
3434
* Alias for FluxStandardAction.
3535
*/
36-
exporttypeFSA<Payload,Meta>=FluxStandardAction<Payload,Meta>;
36+
exporttypeFSA<Payload,Meta=undefined>=FluxStandardAction<Payload,Meta>;
3737

3838
/**
3939
* Alias for ErrorFluxStandardAction.
4040
*/
41-
exporttypeErrorFSA<CustomErrorextendsError,Meta>=ErrorFluxStandardAction<CustomError,Meta>;
41+
exporttypeErrorFSA<CustomErrorextendsError,Meta=undefined>=ErrorFluxStandardAction<CustomError,Meta>;
4242

4343
/**
4444
* Returns `true` if `action` is FSA compliant.
4545
*/
46-
exportfunctionisFSA<Payload,Meta>(action:any):action isFluxStandardAction<Payload,Meta>;
46+
exportfunctionisFSA<Payload,Meta=undefined>(action:any):action isFluxStandardAction<Payload,Meta>;
4747

4848
/**
4949
* Returns `true` if `action` is FSA compliant error.
5050
*/
51-
exportfunctionisError<CustomErrorextendsError,Meta>(action:any):action isErrorFluxStandardAction<CustomError,Meta>;
51+
exportfunctionisError<CustomErrorextendsError,Meta=undefined>(action:any):action isErrorFluxStandardAction<CustomError,Meta>;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp