Skip to content

Commit

Permalink
chore: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Mar 31, 2020
1 parent 0b4cc59 commit bd759ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/shared/abstract/service/handlers/handler.service.ts
Expand Up @@ -8,10 +8,8 @@ export abstract class HandlerService<T extends TableRow> extends SubscriptionHan
selectedName: string;
isNew = false;

protected abstract _statusMap: {
[key: string]: boolean;
};
get statusMap() {
protected abstract _statusMap: { [key: string]: boolean };
get statusMap(): { [key: string]: boolean } {
return this._statusMap;
}

Expand All @@ -28,7 +26,7 @@ export abstract class HandlerService<T extends TableRow> extends SubscriptionHan
super();
}

private resetStatus() {
private resetStatus(): void {
/* istanbul ignore next */ // not reachable under normal circumstances
if (!this._statusMap) {
return; // prevent test error: TypeError: Cannot convert undefined or null to object
Expand Down

0 comments on commit bd759ea

Please sign in to comment.