Skip to content

Commit a9a04cd

Browse files
committed
Fix tslint array-type violations
Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
1 parent dc9b175 commit a9a04cd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

interfaces/src/interface/messages/socket.message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export interface IBlockCompleteEvent {
7474
/** Human-readable description of the first error (when status === 'failure') */
7575
error?: string;
7676
/** All errors collected across the downstream async chain */
77-
errorDetails?: Array<{ message: string; stack?: string }>;
77+
errorDetails?: { message: string; stack?: string }[];
7878
/** Unix ms timestamp when completion was determined */
7979
timestamp: number;
8080
}

policy-service/src/policy-engine/record-action-step.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { GenerateUUIDv4 } from '@guardian/interfaces';
22
import { PolicyLink } from './interfaces/index.js';
33

4-
type Callback = (id: string, timestamp: number, errors: Array<{ message: string; stack?: string }>) => void;
4+
type Callback = (id: string, timestamp: number, errors: { message: string; stack?: string }[]) => void;
55

66
export class RecordActionStep {
77
public readonly id: string;
88
public readonly timestemp: number;
99
public readonly syncActions: boolean;
1010
public readonly withHistory: boolean;
1111
private readonly results: any[] = [];
12-
private readonly errors: Array<{ message: string; stack?: string }> = [];
12+
private readonly errors: { message: string; stack?: string }[] = [];
1313
private readonly actionsMap: Set<string> = new Set();
1414
public counter: number;
1515
private callbackFired = false;
@@ -56,7 +56,7 @@ export class RecordActionStep {
5656
this.errors.push({ message, stack });
5757
}
5858

59-
public getErrors(): Array<{ message: string; stack?: string }> {
59+
public getErrors(): { message: string; stack?: string }[] {
6060
return [...this.errors];
6161
}
6262

0 commit comments

Comments
 (0)