fix return type

This commit is contained in:
Ben Irvin 2022-08-24 16:26:40 +02:00
parent 589a5bd1cf
commit 1bd9fbdd85

View File

@ -142,7 +142,7 @@ const hash = (accessKey) => {
/**
* @param {number} lifespan
*
* @returns {null|number}
* @returns { { lifespan: null | number, expiresAt: null | number } }
*/
const getExpirationFields = (lifespan) => {
// it must be nil or a finite number >= 0