mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
types: move exported objects from index.d.ts to overrides.d.ts (#7152)
This way we generate these types right away, without duplicating them everywhere.
This commit is contained in:
parent
b74ca36fb3
commit
b625a04adc
7
index.d.ts
vendored
7
index.d.ts
vendored
@ -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;
|
||||
|
7
packages/common/index.d.ts
vendored
7
packages/common/index.d.ts
vendored
@ -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;
|
||||
|
7
packages/playwright-test/index.d.ts
vendored
7
packages/playwright-test/index.d.ts
vendored
@ -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';
|
||||
|
6
types/types.d.ts
vendored
6
types/types.d.ts
vendored
@ -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-340490459
|
||||
export {};
|
||||
|
||||
|
6
utils/generate_types/overrides.d.ts
vendored
6
utils/generate_types/overrides.d.ts
vendored
@ -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-340490459
|
||||
export {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user