Skip to content

Commit

Permalink
Update FixerStatus type to account for potential error props
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Sep 23, 2024
1 parent e594b48 commit c2ff8a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions projects/plugins/protect/src/js/types/fixers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ export type FixerStatus = 'not_started' | 'in_progress' | 'fixed' | 'not_fixed';

export type FixersStatus = {
ok: boolean;
threats: {
error?: string;
threats?: {
[ key: number ]: ThreatFixStatus;
};
};

export type ThreatFixStatus = {
status: FixerStatus;
last_updated: string;
error?: string;
status?: FixerStatus;
last_updated?: string;
};

0 comments on commit c2ff8a8

Please sign in to comment.