From ab70e61f81311df1c9776669b9c43de2174f72f7 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Fri, 11 Nov 2022 23:39:17 +0100 Subject: [PATCH] Changed auxiliaryFields getter return type --- src/PKPass.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/PKPass.ts b/src/PKPass.ts index 58e02ba..e1347f4 100644 --- a/src/PKPass.ts +++ b/src/PKPass.ts @@ -287,9 +287,14 @@ export default class PKPass extends Bundle { * if no valid pass.json has been parsed yet * or, anyway, if a valid type has not been * 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; }