Current behavior:
Cookie interface expiry prop is typed as string. But it's a number.
Also it's in unix epoch, might be wort. a line in the docs (:
Desired behavior:
Correct typings for expiry
Test code to reproduce
cy.setCookie('test', '1')
cy.getCookie('test')
.then((cookie) => {
expect(typeof cookie.expiry).to.equal('number')
})
Versions
Current behavior:
Cookie interface
expiryprop is typed as string. But it's a number.Also it's in unix epoch, might be wort. a line in the docs (:
Desired behavior:
Correct typings for expiry
Test code to reproduce
Versions