@@ -36,7 +36,7 @@ interface AppVersion {
36
36
message : string
37
37
}
38
38
39
- function GetVersion ( callback : ( v : AppVersion ) => { } ) {
39
+ function GetVersion ( callback : ( v : AppVersion ) => void ) {
40
40
const requestOptions = {
41
41
method : 'POST' ,
42
42
}
@@ -90,7 +90,7 @@ function UpdateTestSuite(suite: any,
90
90
}
91
91
92
92
function GetTestSuite ( name : string , callback : ( ) => { } ,
93
- errHandle : ( e : any ) => { } ) {
93
+ errHandle : ( e : any ) => void ) {
94
94
const store = Cache . GetCurrentStore ( )
95
95
const requestOptions = {
96
96
method : 'POST' ,
@@ -107,7 +107,7 @@ function GetTestSuite(name: string, callback: () => {},
107
107
}
108
108
109
109
function DeleteTestSuite ( name : string ,
110
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
110
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
111
111
const requestOptions = {
112
112
method : 'POST' ,
113
113
headers : {
@@ -123,7 +123,7 @@ function DeleteTestSuite(name: string,
123
123
}
124
124
125
125
function ConvertTestSuite ( suiteName : string , genertor : string ,
126
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
126
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
127
127
const requestOptions = {
128
128
method : 'POST' ,
129
129
headers : {
@@ -163,7 +163,7 @@ interface TestCase {
163
163
}
164
164
165
165
function CreateTestCase ( testcase : TestCase ,
166
- callback : ( ) => { } , errHandle ?: ( e : any ) => { } | null ) {
166
+ callback : ( ) => { } , errHandle ?: ( e : any ) => void | null ) {
167
167
const requestOptions = {
168
168
method : 'POST' ,
169
169
headers : {
@@ -187,7 +187,7 @@ function CreateTestCase(testcase: TestCase,
187
187
}
188
188
189
189
function UpdateTestCase ( testcase : any ,
190
- callback : ( ) => { } , errHandle ?: ( e : any ) => { } | null ) {
190
+ callback : ( ) => { } , errHandle ?: ( e : any ) => void | null ) {
191
191
const requestOptions = {
192
192
method : 'POST' ,
193
193
headers : {
@@ -201,7 +201,7 @@ function UpdateTestCase(testcase: any,
201
201
}
202
202
203
203
function GetTestCase ( req : TestCase ,
204
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
204
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
205
205
const requestOptions = {
206
206
method : 'POST' ,
207
207
headers : {
@@ -218,7 +218,7 @@ function GetTestCase(req: TestCase,
218
218
}
219
219
220
220
function ListTestCase ( suite : string , store : string ,
221
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
221
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
222
222
const requestOptions = {
223
223
method : 'POST' ,
224
224
headers : {
@@ -234,7 +234,7 @@ function ListTestCase(suite: string, store: string,
234
234
}
235
235
236
236
function DeleteTestCase ( testcase : TestCase ,
237
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
237
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
238
238
const requestOptions = {
239
239
method : 'POST' ,
240
240
headers : {
@@ -256,7 +256,7 @@ interface RunTestCaseRequest {
256
256
}
257
257
258
258
function RunTestCase ( request : RunTestCaseRequest ,
259
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
259
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
260
260
const requestOptions = {
261
261
method : 'POST' ,
262
262
headers : {
@@ -280,7 +280,7 @@ interface GenerateRequest {
280
280
}
281
281
282
282
function GenerateCode ( request : GenerateRequest ,
283
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
283
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
284
284
const requestOptions = {
285
285
method : 'POST' ,
286
286
headers : {
@@ -297,14 +297,14 @@ function GenerateCode(request: GenerateRequest,
297
297
. then ( callback ) . catch ( errHandle )
298
298
}
299
299
300
- function ListCodeGenerator ( callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
300
+ function ListCodeGenerator ( callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
301
301
fetch ( '/server.Runner/ListCodeGenerator' , {
302
302
method : 'POST'
303
303
} ) . then ( DefaultResponseProcess )
304
304
. then ( callback ) . catch ( errHandle )
305
305
}
306
306
307
- function PopularHeaders ( callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
307
+ function PopularHeaders ( callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
308
308
const requestOptions = {
309
309
method : 'POST' ,
310
310
headers : {
@@ -316,17 +316,18 @@ function PopularHeaders(callback: (d: any) => {}, errHandle?: (e: any) => {} | n
316
316
. then ( callback ) . catch ( errHandle )
317
317
}
318
318
319
- function GetStores ( callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
319
+ function GetStores ( callback : ( d : any ) => void ,
320
+ errHandle ?: ( e : any ) => void | null , final ?: ( ) => void | null ) {
320
321
const requestOptions = {
321
322
method : 'POST' ,
322
323
}
323
324
fetch ( '/server.Runner/GetStores' , requestOptions )
324
- . then ( DefaultResponseProcess )
325
- . then ( callback ) . catch ( errHandle )
325
+ . then ( DefaultResponseProcess )
326
+ . then ( callback ) . catch ( errHandle ) . finally ( final )
326
327
}
327
328
328
329
function DeleteStore ( name : string ,
329
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
330
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
330
331
const requestOptions = {
331
332
method : 'POST' ,
332
333
body : JSON . stringify ( {
@@ -339,7 +340,7 @@ function DeleteStore(name: string,
339
340
}
340
341
341
342
function VerifyStore ( name : string ,
342
- callback : ( d : any ) => { } , errHandle ?: ( e : any ) => { } | null ) {
343
+ callback : ( d : any ) => void , errHandle ?: ( e : any ) => void | null ) {
343
344
const requestOptions = {
344
345
method : 'POST' ,
345
346
body : JSON . stringify ( {
0 commit comments