File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -82,26 +82,29 @@ Here's what we add to each client:
82
82
83
83
- [ ` delphi_epidata.js ` ] ( ../src/client/delphi_epidata.js )
84
84
``` javascript
85
- // TODO sam
86
- Epidata .fluview_meta = function (callback ) {
87
- var params;
88
- params = {
89
- ' endpoint' : ' fluview_meta'
90
- };
91
- return _request (callback, params);
85
+ // within createEpidataAsync
86
+ return {
87
+ BASE_URL : baseUrl || BASE_URL ,
88
+ // ...
89
+ /**
90
+ * Fetch FluView metadata
91
+ */
92
+ fluview_meta : () => {
93
+ return _request (" fluview_meta" , {});
94
+ },
92
95
};
93
96
```
94
97
95
98
- [` delphi_epidata.d.ts` ](../ src/ client/ delphi_epidata .d .ts )
96
99
` ` ` typescript
97
- // TODO sam
98
- Epidata.fluview_meta = function(callback) {
99
- var params ;
100
- params = {
101
- 'endpoint': 'fluview_meta'
102
- };
103
- return _request(callback, params) ;
104
- };
100
+ export interface EpidataFunctions {
101
+ // ...
102
+ fluview_meta(callback: EpiDataCallback): Promise<EpiDataResponse> ;
103
+ }
104
+ export interface EpidataAsyncFunctions {
105
+ // ...
106
+ fluview_meta(): Promise<EpiDataResponse> ;
107
+ }
105
108
` ` `
106
109
107
110
- [` delphi_epidata.py` ](../ src/ client/ delphi_epidata .py )
You can’t perform that action at this time.
0 commit comments