Skip to content

Commit

Permalink
Enforce read-only fields on some interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
plblum committed Sep 28, 2024
1 parent ba1de5b commit 2b5db3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jivs-engine/src/Interfaces/ValidationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface IValidationManager extends IValueHostsManager {
/**
* Provides access to ValidationServices (override IServices).
*/
services: IValidationServices;
readonly services: IValidationServices;

startModifying(): ValidationManagerConfigModifier;
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/jivs-engine/src/Interfaces/ValueHostsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IValueHostsManager extends IValueHostResolver, IDisposable
/**
* Typecast from IServices
*/
services: IValueHostsServices;
readonly services: IValueHostsServices;

/**
* Adds a ValueHostConfig for a ValueHost not previously added.
Expand Down Expand Up @@ -262,7 +262,7 @@ export function toIValueHostsManager(source: any): IValueHostsManager | null
*/
export interface IValueHostsManagerAccessor
{
valueHostsManager: IValueHostsManager;
readonly valueHostsManager: IValueHostsManager;
}

/**
Expand Down

0 comments on commit 2b5db3a

Please sign in to comment.