Skip to content

Commit

Permalink
Lint Fixes for Issue hyperledger-cacti#1352
Browse files Browse the repository at this point in the history
Submitting fixes for Issue hyperledger-cacti#1352, minus fix for ID 30

Signed-off-by: rachel2code <racheldsater@gmail.com>
  • Loading branch information
rachel2code committed Oct 1, 2021
1 parent 6deed6d commit 68592ab
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
this.log.debug("clickShowDetail()", shipment);

const modal = await this.modalController.create({
Expand All @@ -73,7 +73,7 @@ export class ShipmentListPage implements OnInit {
}
}

async clickAddNew() {
async clickAddNew():Promise<void> {
this.log.debug(`clickAddNew()`);
const modal = await this.modalController.create({
component: ShipmentDetailPage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class FilesApiMock implements FilesAPI {
public async flush(
ipfsPath: string,
options?: AbortOptions | undefined,
): Promise<any> {
): Promise<RuntimeError> {
throw new RuntimeError("Method flush() not implemented");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68592ab

Please sign in to comment.