File tree 6 files changed +9
-7
lines changed
examples/cactus-example-supply-chain-frontend/src
bookshelf/bookshelf-detail
extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs
6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class BookshelfDetailPage implements OnInit {
79
79
this . log . debug ( `BambooHarvest IDs: %o` , this . bambooHarvestIds ) ;
80
80
}
81
81
82
- onClickFormSubmit ( value : any ) : void {
82
+ onClickFormSubmit ( value : Bookshelf ) : void {
83
83
this . log . debug ( "form submitted" , value ) ;
84
84
this . bookshelf = value ;
85
85
this . modalController . dismiss ( this . bookshelf ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export class ShipmentDetailPage implements OnInit {
77
77
this . log . debug ( `BambooHarvest IDs: %o` , this . bookshelfIds ) ;
78
78
}
79
79
80
- onClickFormSubmit ( value : any ) : void {
80
+ onClickFormSubmit ( value : Shipment ) : void {
81
81
this . log . debug ( "form submitted" , value ) ;
82
82
this . shipment = value ;
83
83
this . modalController . dismiss ( this . shipment ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class ShipmentListPage implements OnInit {
53
53
this . log . debug ( `Fetched Shipment data: %o` , shipments ) ;
54
54
}
55
55
56
- async clickShowDetail ( shipment : Shipment ) {
56
+ async clickShowDetail ( shipment : Shipment ) : Promise < void > {
57
57
this . log . debug ( "clickShowDetail()" , shipment ) ;
58
58
59
59
const modal = await this . modalController . create ( {
@@ -73,7 +73,7 @@ export class ShipmentListPage implements OnInit {
73
73
}
74
74
}
75
75
76
- async clickAddNew ( ) {
76
+ async clickAddNew ( ) : Promise < void > {
77
77
this . log . debug ( `clickAddNew()` ) ;
78
78
const modal = await this . modalController . create ( {
79
79
component : ShipmentDetailPage ,
Original file line number Diff line number Diff line change 2
2
* Prevents Angular change detection from
3
3
* running with certain Web Component callbacks
4
4
*/
5
- ( window as any ) . __Zone_disable_customElements = true ;
5
+ type WindowWithZone = Window &
6
+ typeof globalThis & { __Zone_disable_customElements : boolean } ;
7
+ ( window as WindowWithZone ) . __Zone_disable_customElements = true ;
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export class FilesApiMock implements FilesAPI {
140
140
public async flush (
141
141
ipfsPath : string ,
142
142
options ?: AbortOptions | undefined ,
143
- ) : Promise < any > {
143
+ ) : Promise < RuntimeError > {
144
144
throw new RuntimeError ( "Method flush() not implemented" ) ;
145
145
}
146
146
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export class IpfsHttpClientMock implements IIpfsHttpClient {
119
119
this . dag = { } as DAGAPI ;
120
120
this . dht = { } as DHTAPI ;
121
121
this . diag = { } as DiagAPI ;
122
- this . files = new FilesApiMock ( { logLevel : this . options . logLevel } ) as any ;
122
+ this . files = new FilesApiMock ( { logLevel : this . options . logLevel } ) as FilesAPI ;
123
123
this . key = { } as KeyAPI ;
124
124
this . log = { } as LogAPI ;
125
125
this . name = { } as NameAPI ;
You can’t perform that action at this time.
0 commit comments