From 7a23cba582dd630a429bdf267fc1457d442d854e Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 25 Sep 2021 20:21:22 +0200 Subject: [PATCH] Added accessors on getters and setters --- src/PKPass.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PKPass.ts b/src/PKPass.ts index c9bcfd0..b775645 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -134,7 +134,7 @@ export default class PKPass extends Bundle { * that are composing your pass instance. */ - get props(): Readonly { + public get props(): Readonly { return freezeRecusive(this[propsSymbol]); } @@ -146,7 +146,7 @@ export default class PKPass extends Bundle { * @param value */ - set transitType(value: TransitTypes) { + public set transitType(value: TransitTypes) { if (!this[propsSymbol].boardingPass) { throw new TypeError( "Cannot set transitType on a pass with type different from 'boardingPass'.", @@ -172,7 +172,7 @@ export default class PKPass extends Bundle { * from pass props */ - get transitType(): TransitTypes { + public get transitType(): TransitTypes { return this[propsSymbol]["boardingPass"]?.transitType; } @@ -184,7 +184,7 @@ export default class PKPass extends Bundle { * anyway, if it has not a valid type. */ - get primaryFields(): Schemas.Field[] { + public get primaryFields(): Schemas.Field[] { return this[propsSymbol][this.type].primaryFields; } @@ -196,7 +196,7 @@ export default class PKPass extends Bundle { * anyway, if it has not a valid type. */ - get secondaryFields(): Schemas.Field[] { + public get secondaryFields(): Schemas.Field[] { return this[propsSymbol][this.type].secondaryFields; } @@ -208,7 +208,7 @@ export default class PKPass extends Bundle { * anyway, if it has not a valid type. */ - get auxiliaryFields(): Schemas.Field[] { + public get auxiliaryFields(): Schemas.Field[] { return this[propsSymbol][this.type].auxiliaryFields; } @@ -220,7 +220,7 @@ export default class PKPass extends Bundle { * anyway, if it has not a valid type. */ - get headerFields(): Schemas.Field[] { + public get headerFields(): Schemas.Field[] { return this[propsSymbol][this.type].headerFields; } @@ -232,7 +232,7 @@ export default class PKPass extends Bundle { * anyway, if it has not a valid type. */ - get backFields(): Schemas.Field[] { + public get backFields(): Schemas.Field[] { return this[propsSymbol][this.type].backFields; }