Skip to content

Commit

Permalink
Add ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 13, 2024
1 parent 60ec61b commit c3da429
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/lib/automation/util.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import type playwright from 'playwright-webkit'
import { domainMatch } from 'tough-cookie'

// @ts-ignore
export type CyCookie = Pick<chrome.cookies.Cookie, 'name' | 'value' | 'expirationDate' | 'hostOnly' | 'domain' | 'path' | 'secure' | 'httpOnly'> & {
// use `undefined` instead of `unspecified`
sameSite?: 'no_restriction' | 'lax' | 'strict'
}

// Cypress uses the webextension-style filtering
// https://developer.chrome.com/extensions/cookies#method-getAll
// @ts-ignore
export type CyCookieFilter = chrome.cookies.GetAllDetails

export const cookieMatches = (cookie: CyCookie | playwright.Cookie, filter: CyCookieFilter) => {
Expand Down

0 comments on commit c3da429

Please sign in to comment.