@@ -43,7 +43,7 @@ export class RustBackend {
43
43
return result ;
44
44
}
45
45
46
- async search ( search_params : Map < any , any > , offset : number ) : Promise < String > {
46
+ async search ( search_params : { } , offset : number ) : Promise < String > {
47
47
if ( ! this . inner ) {
48
48
throw new Error ( "RustBackend not initialised" ) ;
49
49
}
@@ -52,15 +52,15 @@ export class RustBackend {
52
52
return result ;
53
53
}
54
54
55
- async downloadMetrics ( params : Map < any , any > ) : Promise < String > {
55
+ async downloadMetrics ( params : { } ) : Promise < String > {
56
56
if ( ! this . inner ) {
57
57
throw new Error ( "RustBackend not initialised" ) ;
58
58
}
59
59
const result = JSON . parse ( await this . inner ! . downloadMetrics ( params ) ) ;
60
60
// console.log("RustBackend.getCountries result", result);
61
61
return result ;
62
62
}
63
- async downloadGeoms ( params : Map < any , any > ) : Promise < String > {
63
+ async downloadGeoms ( params : { } ) : Promise < String > {
64
64
if ( ! this . inner ) {
65
65
throw new Error ( "RustBackend not initialised" ) ;
66
66
}
@@ -69,7 +69,7 @@ export class RustBackend {
69
69
return result ;
70
70
}
71
71
async downloadDataRequestMetrics (
72
- data_request_spec : Map < any , any > ,
72
+ data_request_spec : { } ,
73
73
) : Promise < String > {
74
74
if ( ! this . inner ) {
75
75
throw new Error ( "RustBackend not initialised" ) ;
@@ -80,7 +80,7 @@ export class RustBackend {
80
80
return result ;
81
81
}
82
82
async downloadDataRequestMetricsSql (
83
- data_request_spec : Map < any , any > ,
83
+ data_request_spec : { } ,
84
84
) : Promise < String > {
85
85
if ( ! this . inner ) {
86
86
throw new Error ( "RustBackend not initialised" ) ;
@@ -90,7 +90,7 @@ export class RustBackend {
90
90
return result ;
91
91
}
92
92
async downloadDataRequestGeoms (
93
- data_request_spec : Map < any , any > ,
93
+ data_request_spec : { } ,
94
94
) : Promise < String > {
95
95
if ( ! this . inner ) {
96
96
throw new Error ( "RustBackend not initialised" ) ;
@@ -102,7 +102,7 @@ export class RustBackend {
102
102
return result ;
103
103
}
104
104
async downloadDataRequestGeomsPmtiles (
105
- data_request_spec : Map < any , any > ,
105
+ data_request_spec : { } ,
106
106
) : Promise < String > {
107
107
if ( ! this . inner ) {
108
108
throw new Error ( "RustBackend not initialised" ) ;
@@ -113,7 +113,7 @@ export class RustBackend {
113
113
return result ;
114
114
}
115
115
116
- async downloadDataRequest ( data_request_spec : Map < any , any > ) : Promise < String > {
116
+ async downloadDataRequest ( data_request_spec : { } ) : Promise < String > {
117
117
if ( ! this . inner ) {
118
118
throw new Error ( "RustBackend not initialised" ) ;
119
119
}
0 commit comments