Improved signature for setRelevantDate

This commit is contained in:
Alexander Cerutti
2023-04-11 23:11:39 +02:00
parent b5d6ed0dfb
commit 687caf727b

View File

@@ -899,10 +899,10 @@ export default class PKPass extends Bundle {
* Allows setting a relevant date in which the OS * Allows setting a relevant date in which the OS
* should show this pass. * should show this pass.
* *
* @param date * @param {Date | null} date
*/ */
public setRelevantDate(date: Date): void { public setRelevantDate(date: Date | null): void {
Utils.assertUnfrozen(this); Utils.assertUnfrozen(this);
if (date === null) { if (date === null) {