From 9348dd4b6e75e6fdf050677fbc7d07b7996c9e4b Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 6 Feb 2025 11:01:00 +0100 Subject: [PATCH] fix types --- packages/playwright-core/src/client/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-core/src/client/fetch.ts b/packages/playwright-core/src/client/fetch.ts index 8bae02e21c..07cee65871 100644 --- a/packages/playwright-core/src/client/fetch.ts +++ b/packages/playwright-core/src/client/fetch.ts @@ -25,7 +25,7 @@ import { assert, headersObjectToArray, isString } from '../utils'; import { mkdirIfNeeded } from '../utils/fileUtils'; import { ChannelOwner } from './channelOwner'; import { RawHeaders } from './network'; -import type { ClientCertificate, FilePayload, Headers, StorageState } from './types'; +import type { ClientCertificate, FilePayload, Headers, SetStorageState, StorageState } from './types'; import type { Playwright } from './playwright'; import { Tracing } from './tracing'; import { TargetClosedError, isTargetClosedError } from './errors'; @@ -47,7 +47,7 @@ export type FetchOptions = { type NewContextOptions = Omit & { extraHTTPHeaders?: Headers, - storageState?: string | StorageState, + storageState?: string | SetStorageState, clientCertificates?: ClientCertificate[]; };