Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
types: move exported objects from index.d.ts to overrides.d.ts (#7152)
Dmitry Gozmanb625a04adcf3
diff --git a/index.d.ts b/index.d.tsindex 93e1dcd9d7..97c1493608 100644--- a/index.d.ts+++ b/index.d.ts@@ -14,11 +14,4 @@* limitations under the License.*/-import * as types from './types/types';-export * from './types/types';-export const webkit: types.BrowserType;-export const chromium: types.BrowserType;-export const firefox: types.BrowserType;-export const _electron: types.Electron;-export const _android: types.Android;diff --git a/packages/common/index.d.ts b/packages/common/index.d.tsindex d152013023..97c1493608 100644--- a/packages/common/index.d.ts+++ b/packages/common/index.d.ts@@ -14,11 +14,4 @@* limitations under the License.*/-import * as types from './types/types';-export * from './types/types';-export const chromium: types.BrowserType;-export const firefox: types.BrowserType;-export const webkit: types.BrowserType;-export const _electron: types.Electron;-export const _android: types.Android;diff --git a/packages/playwright-test/index.d.ts b/packages/playwright-test/index.d.tsindex ccae162bae..c4573c9189 100644--- a/packages/playwright-test/index.d.ts+++ b/packages/playwright-test/index.d.ts@@ -14,12 +14,5 @@* limitations under the License.*/-import * as types from './types/types';-export * from './types/types';-export const chromium: types.BrowserType;-export const firefox: types.BrowserType;-export const webkit: types.BrowserType;-export const _electron: types.Electron;-export const _android: types.Android;export * from './types/test';diff --git a/types/types.d.ts b/types/types.d.tsindex 0492a95e5b..eb7aa6c23c 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -7846,6 +7846,12 @@ export type AndroidKey ='Copy' |'Paste';+export const chromium: BrowserType;+export const firefox: BrowserType;+export const webkit: BrowserType;+export const _electron: Electron;+export const _android: Android;+// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459export {};diff --git a/utils/generate_types/overrides.d.ts b/utils/generate_types/overrides.d.tsindex 406b13d8db..75a76c27e5 100644--- a/utils/generate_types/overrides.d.ts+++ b/utils/generate_types/overrides.d.ts@@ -321,5 +321,11 @@ export type AndroidKey ='Copy' |'Paste';+export const chromium: BrowserType;+export const firefox: BrowserType;+export const webkit: BrowserType;+export const _electron: Electron;+export const _android: Android;+// This is required to not export everything by default. See https://github.com/Microsoft/TypeScript/issues/19545#issuecomment-340490459export {};