Skip to content

Commit dd0a035

Browse files
committed
Lint Fixes for Issue hyperledger-cacti#1352
Submitting fixes for Issue hyperledger-cacti#1352, minus fix for ID 30
1 parent 6deed6d commit dd0a035

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

examples/cactus-example-supply-chain-frontend/src/app/bookshelf/bookshelf-detail/bookshelf-detail.page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class BookshelfDetailPage implements OnInit {
7979
this.log.debug(`BambooHarvest IDs: %o`, this.bambooHarvestIds);
8080
}
8181

82-
onClickFormSubmit(value: any): void {
82+
onClickFormSubmit(value: Bookshelf): void {
8383
this.log.debug("form submitted", value);
8484
this.bookshelf = value;
8585
this.modalController.dismiss(this.bookshelf);

examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-detail/shipment-detail.page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class ShipmentDetailPage implements OnInit {
7777
this.log.debug(`BambooHarvest IDs: %o`, this.bookshelfIds);
7878
}
7979

80-
onClickFormSubmit(value: any): void {
80+
onClickFormSubmit(value: Shipment): void {
8181
this.log.debug("form submitted", value);
8282
this.shipment = value;
8383
this.modalController.dismiss(this.shipment);

examples/cactus-example-supply-chain-frontend/src/app/shipment/shipment-list/shipment-list.page.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ShipmentListPage implements OnInit {
5353
this.log.debug(`Fetched Shipment data: %o`, shipments);
5454
}
5555

56-
async clickShowDetail(shipment: Shipment) {
56+
async clickShowDetail(shipment: Shipment):Promise<void> {
5757
this.log.debug("clickShowDetail()", shipment);
5858

5959
const modal = await this.modalController.create({
@@ -73,7 +73,7 @@ export class ShipmentListPage implements OnInit {
7373
}
7474
}
7575

76-
async clickAddNew() {
76+
async clickAddNew():Promise<void> {
7777
this.log.debug(`clickAddNew()`);
7878
const modal = await this.modalController.create({
7979
component: ShipmentDetailPage,

examples/cactus-example-supply-chain-frontend/src/zone-flags.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
* Prevents Angular change detection from
33
* running with certain Web Component callbacks
44
*/
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;

extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-files-api-mock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class FilesApiMock implements FilesAPI {
140140
public async flush(
141141
ipfsPath: string,
142142
options?: AbortOptions | undefined,
143-
): Promise<any> {
143+
): Promise<RuntimeError> {
144144
throw new RuntimeError("Method flush() not implemented");
145145
}
146146

extensions/cactus-plugin-object-store-ipfs/src/test/typescript/fixtures/mock/ipfs/ipfs-http-client-mock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class IpfsHttpClientMock implements IIpfsHttpClient {
119119
this.dag = {} as DAGAPI;
120120
this.dht = {} as DHTAPI;
121121
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;
123123
this.key = {} as KeyAPI;
124124
this.log = {} as LogAPI;
125125
this.name = {} as NameAPI;

0 commit comments

Comments
 (0)