redux-paginator-immutable 17.0.43 → 17.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.d.ts +19 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redux-paginator-immutable",
3
- "version": "17.0.43",
3
+ "version": "17.0.44",
4
4
  "types": "./lib/index.d.ts",
5
5
  "description": "redux-paginator-immutable helps you deal with paginated API by composing your existing reducers",
6
6
  "main": "./lib/index.js",
package/src/types.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- type PagesState = any;
2
- type ItemsState = any;
3
- type State = {
1
+ declare type PagesState = any;
2
+ declare type ItemsState = any;
3
+ declare type State = {
4
4
  readonly pages: PagesState;
5
5
  readonly itemsReducer: ItemsState;
6
6
  };
7
7
 
8
8
 
9
- type GetState = () => State;
10
- type PromiseAction = Promise<Action>;
11
- type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;
12
- type Dispatch = (action: Action | ThunkAction | PromiseAction | Array<Action>) => any;
13
- type EndPointCb = ((token?: string) => string) | null;
9
+ declare type GetState = () => State;
10
+ declare type PromiseAction = Promise<Action>;
11
+ declare type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;
12
+ declare type Dispatch = (action: Action | ThunkAction | PromiseAction | Array<Action>) => any;
13
+ declare type EndPointCb = ((token?: string) => string) | null;
14
14
 
15
15
 
16
- type PaginatorSettings = {
16
+ declare type PaginatorSettings = {
17
17
  key: string;
18
18
  manageEntity: any;
19
19
  resultsKey: string;
@@ -35,7 +35,7 @@ type PaginatorSettings = {
35
35
 
36
36
  // actions
37
37
 
38
- type RequestPageAction = {
38
+ declare type RequestPageAction = {
39
39
  type: "@@redux-paginator-immutable/REQUEST_PAGE";
40
40
  meta: {
41
41
  endpoint: string;
@@ -51,7 +51,7 @@ type RequestPageAction = {
51
51
  token: string;
52
52
  };
53
53
  };
54
- type ReceivePageAction = {
54
+ declare type ReceivePageAction = {
55
55
  type: "@@redux-paginator-immutable/RECEIVE_PAGE";
56
56
  meta: {
57
57
  endpoint: string;
@@ -69,7 +69,7 @@ type ReceivePageAction = {
69
69
  raw?: string;
70
70
  };
71
71
  };
72
- type ChangeViewAction = {
72
+ declare type ChangeViewAction = {
73
73
  type: "@@redux-paginator-immutable/CHANGE_VIEW";
74
74
  meta: {
75
75
  endpoint: string;
@@ -79,7 +79,7 @@ type ChangeViewAction = {
79
79
  token: string;
80
80
  };
81
81
  };
82
- type ResetViewAction = {
82
+ declare type ResetViewAction = {
83
83
  type: "@@redux-paginator-immutable/RESET_VIEW";
84
84
  meta: {
85
85
  endpoint: string;
@@ -88,28 +88,28 @@ type ResetViewAction = {
88
88
  token: string;
89
89
  };
90
90
  };
91
- type ClearDataAction = {
91
+ declare type ClearDataAction = {
92
92
  type: "@@redux-paginator-immutable/CLEAR_DATA";
93
93
  meta: {
94
94
  endpoint: string;
95
95
  };
96
96
  };
97
- type FetchCurrentCompanyInfoPending = {
97
+ declare type FetchCurrentCompanyInfoPending = {
98
98
  type: "FETCH_CURRENT_COMPANY_INFO_PENDING";
99
99
  };
100
- type FetchItemDataPending = {
100
+ declare type FetchItemDataPending = {
101
101
  type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_PENDING";
102
102
  meta: {
103
103
  id: string;
104
104
  };
105
105
  };
106
- type FetchItemDataRejected = {
106
+ declare type FetchItemDataRejected = {
107
107
  type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_REJECTED";
108
108
  meta: {
109
109
  id: string;
110
110
  };
111
111
  };
112
- type FetchItemDataFulFilled = {
112
+ declare type FetchItemDataFulFilled = {
113
113
  type: "@@redux-paginator-immutable/FETCH_ITEM_DATA_FULFILLED";
114
114
  payload: {
115
115
  Data: any;
@@ -118,7 +118,7 @@ type FetchItemDataFulFilled = {
118
118
  id: string;
119
119
  };
120
120
  };
121
- type Action =
121
+ declare type Action =
122
122
  RequestPageAction |
123
123
  ReceivePageAction |
124
124
  ResetViewAction |