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:
Dmitry Gozman 2021-06-15 15:06:18 -07:00 committed by GitHub
parent b74ca36fb3
commit b625a04adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 21 deletions

7
index.d.ts vendored
View File

@ -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;

View File

@ -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;

View File

@ -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
View File

@ -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 {};

View File

@ -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 {};