diff --git a/examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts b/examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts index 817bc80ea2c..758afa86812 100644 --- a/examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts +++ b/examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts @@ -79,7 +79,7 @@ export class BookshelfDetailPage implements OnInit { this.log.debug(`BambooHarvest IDs: %o`, this.bambooHarvestIds); } - onClickFormSubmit(value: any): void { + onClickFormSubmit(value: Bookshelf): void { this.log.debug("form submitted", value); this.bookshelf = value; this.modalController.dismiss(this.bookshelf); diff --git a/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts b/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts index ad16378f344..07558f5b495 100644 --- a/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts +++ b/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts @@ -77,7 +77,7 @@ export class ShipmentDetailPage implements OnInit { this.log.debug(`BambooHarvest IDs: %o`, this.bookshelfIds); } - onClickFormSubmit(value: any): void { + onClickFormSubmit(value: Shipment): void { this.log.debug("form submitted", value); this.shipment = value; this.modalController.dismiss(this.shipment); diff --git a/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts b/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts index bcc9c2e03fc..08d419a65f1 100644 --- a/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts +++ b/examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts @@ -53,7 +53,7 @@ export class ShipmentListPage implements OnInit { this.log.debug(`Fetched Shipment data: %o`, shipments); } - async clickShowDetail(shipment: Shipment) { + async clickShowDetail(shipment: Shipment):Promise { this.log.debug("clickShowDetail()", shipment); const modal = await this.modalController.create({ @@ -73,7 +73,7 @@ export class ShipmentListPage implements OnInit { } } - async clickAddNew() { + async clickAddNew():Promise { this.log.debug(`clickAddNew()`); const modal = await this.modalController.create({ component: ShipmentDetailPage, diff --git a/examples/cactus-example-supply-chain-frontend/src/zone-flags.ts b/examples/cactus-example-supply-chain-frontend/src/zone-flags.ts index e999ae9d110..02f7aba38f2 100644 --- a/examples/cactus-example-supply-chain-frontend/src/zone-flags.ts +++ b/examples/cactus-example-supply-chain-frontend/src/zone-flags.ts @@ -2,4 +2,6 @@ * Prevents Angular change detection from * running with certain Web Component callbacks */ -(window as any).__Zone_disable_customElements = true; +type WindowWithZone = Window & + typeof globalThis & {__Zone_disable_customElements: boolean }; +(window as WindowWithZone).__Zone_disable_customElements = true; diff --git a/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts b/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts index 7f763e09d80..9271d5fbbc4 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts +++ b/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts @@ -140,7 +140,7 @@ export class FilesApiMock implements FilesAPI { public async flush( ipfsPath: string, options?: AbortOptions | undefined, - ): Promise { + ): Promise { throw new RuntimeError("Method flush() not implemented"); } diff --git a/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts b/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts index 52ce2016b24..4665638dae7 100644 --- a/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts +++ b/extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts @@ -119,7 +119,7 @@ export class IpfsHttpClientMock implements IIpfsHttpClient { this.dag = {} as DAGAPI; this.dht = {} as DHTAPI; this.diag = {} as DiagAPI; - this.files = new FilesApiMock({ logLevel: this.options.logLevel }) as any; + this.files = new FilesApiMock({ logLevel: this.options.logLevel }) as FilesAPI; this.key = {} as KeyAPI; this.log = {} as LogAPI; this.name = {} as NameAPI;