Skip to content

Wrong type for Cookie interface expiry prop #8144

@MattAndDev

Description

@MattAndDev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions