mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 17:25:21 +00:00
Renamed type setter parameter
This commit is contained in:
@@ -315,17 +315,17 @@ export default class PKPass extends Bundle {
|
|||||||
* headerFields, auxiliaryFields, backFields)
|
* headerFields, auxiliaryFields, backFields)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public set type(maybeNewType: Schemas.PassTypesProps | undefined) {
|
public set type(nextType: Schemas.PassTypesProps | undefined) {
|
||||||
Utils.assertUnfrozen(this);
|
Utils.assertUnfrozen(this);
|
||||||
|
|
||||||
Schemas.assertValidity(
|
Schemas.assertValidity(
|
||||||
Schemas.PassType,
|
Schemas.PassType,
|
||||||
maybeNewType,
|
nextType,
|
||||||
Messages.PASS_TYPE.INVALID,
|
Messages.PASS_TYPE.INVALID,
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Shut up, typescript strict mode! */
|
/** Shut up, typescript strict mode! */
|
||||||
const type = maybeNewType as Schemas.PassTypesProps;
|
const type = nextType as Schemas.PassTypesProps;
|
||||||
|
|
||||||
if (this.type) {
|
if (this.type) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user