Changed auxiliaryFields getter return type

This commit is contained in:
Alexander Cerutti
2022-11-11 23:39:17 +01:00
parent 68c9b1588e
commit ab70e61f81

View File

@@ -287,9 +287,14 @@ export default class PKPass extends Bundle {
* if no valid pass.json has been parsed yet * if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been * or, anyway, if a valid type has not been
* set yet. * set yet.
*
* For Typescript users: this signature allows
* in any case to add the 'row' field, but on
* runtime they are only allowed on "eventTicket"
* passes.
*/ */
public get auxiliaryFields(): Schemas.Field[] { public get auxiliaryFields(): Schemas.FieldWithRow[] {
return this[propsSymbol][this.type].auxiliaryFields; return this[propsSymbol][this.type].auxiliaryFields;
} }