Skip to content

Commit

Permalink
Expose internal registrations and listeners as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Nov 5, 2018
1 parent 73ac0f0 commit 0460a8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/api/goal/GoalWithFulfillment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export interface PredicatedGoalDefinition extends GoalDefinition {
*/
export abstract class FulfillableGoal extends GoalWithPrecondition implements Registerable {

protected readonly fulfillments: Fulfillment[] = [];
protected readonly callbacks: GoalFulfillmentCallback[] = [];
protected readonly projectListeners: GoalProjectListenerRegistration[] = [];
public readonly fulfillments: Fulfillment[] = [];
public readonly callbacks: GoalFulfillmentCallback[] = [];
public readonly projectListeners: GoalProjectListenerRegistration[] = [];

public sdm: SoftwareDeliveryMachine;

Expand Down Expand Up @@ -220,7 +220,7 @@ export abstract class FulfillableGoal extends GoalWithPrecondition implements Re
*/
export abstract class FulfillableGoalWithRegistrations<R> extends FulfillableGoal {

protected registrations: R[] = [];
public readonly registrations: R[] = [];

constructor(public definitionOrGoal: PredicatedGoalDefinition | Goal, ...dependsOn: Goal[]) {
super(definitionOrGoal, ...dependsOn);
Expand All @@ -237,7 +237,7 @@ export abstract class FulfillableGoalWithRegistrations<R> extends FulfillableGoa
*/
export abstract class FulfillableGoalWithRegistrationsAndListeners<R, L> extends FulfillableGoalWithRegistrations<R> {

protected listeners: L[] = [];
public readonly listeners: L[] = [];

constructor(public definitionOrGoal: PredicatedGoalDefinition | Goal, ...dependsOn: Goal[]) {
super(definitionOrGoal, ...dependsOn);
Expand Down

0 comments on commit 0460a8d

Please sign in to comment.