Skip to content

Commit

Permalink
docs: add DvaLoadingState type for dva-loading (#2110)
Browse files Browse the repository at this point in the history
* docs: add DvaLoadingState type for dva-loading

* fix<dva-loading>: value of models and effects in DvaLoadingState could be undefined
  • Loading branch information
DiamondYuan authored and sorrycc committed May 27, 2019
1 parent 5b640aa commit f996836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/dva-loading/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface DvaLoadingState {
global: boolean;
models: { [type: string]: boolean | undefined };
effects: { [type: string]: boolean | undefined };
}
1 change: 1 addition & 0 deletions packages/dva-loading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"module": "dist/index.esm.js",
"sideEffects": false,
"typings": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/dvajs/dva"
Expand Down

0 comments on commit f996836

Please sign in to comment.