File tree Expand file tree Collapse file tree
interfaces/src/interface/messages
policy-service/src/policy-engine Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 11import { GenerateUUIDv4 } from '@guardian/interfaces' ;
22import { 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
66export 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
You can’t perform that action at this time.
0 commit comments