[Maps] Mark instance state as readonly (#60557)

This commit is contained in:
Thomas Neirynck 2020-03-18 17:18:03 -04:00 committed by GitHub
parent 9aad8986e1
commit a35267afd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -23,11 +23,11 @@ export interface IESAggField extends IField {
}
export class ESAggField implements IESAggField {
private _source: IESAggSource;
private _origin: FIELD_ORIGIN;
private _label?: string;
private _aggType: AGG_TYPE;
private _esDocField?: IField | undefined;
private readonly _source: IESAggSource;
private readonly _origin: FIELD_ORIGIN;
private readonly _label?: string;
private readonly _aggType: AGG_TYPE;
private readonly _esDocField?: IField | undefined;
constructor({
label,

View file

@ -12,7 +12,7 @@ import { TOP_TERM_PERCENTAGE_SUFFIX } from '../../../common/constants';
import { FIELD_ORIGIN } from '../../../common/constants';
export class TopTermPercentageField implements IESAggField {
private _topTermAggField: IESAggField;
private readonly _topTermAggField: IESAggField;
constructor(topTermAggField: IESAggField) {
this._topTermAggField = topTermAggField;

View file

@ -34,8 +34,8 @@ export interface IStyleProperty {
}
export class AbstractStyleProperty implements IStyleProperty {
private _options: StylePropertyOptions;
private _styleName: string;
private readonly _options: StylePropertyOptions;
private readonly _styleName: string;
constructor(options: StylePropertyOptions, styleName: string) {
this._options = options;

View file

@ -17,7 +17,7 @@ const sourceDescriptor: XYZTMSSourceDescriptor = {
};
class MockTileSource implements ITMSSource {
private _descriptor: XYZTMSSourceDescriptor;
private readonly _descriptor: XYZTMSSourceDescriptor;
constructor(descriptor: XYZTMSSourceDescriptor) {
this._descriptor = descriptor;
}