UNPKG

1.02 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/**
9 * JS version of browser APIs. This library can only run in the browser.
10 */
11// eslint-disable-next-line @typescript-eslint/no-explicit-any
12const win = (typeof window !== 'undefined' && window) || {};
13export { win as window };
14export const document = win.document;
15export const location = win.location;
16// eslint-disable-next-line @typescript-eslint/no-explicit-any
17export const gc = win.gc ? () => win.gc() : () => null;
18export const performance = win.performance ? win.performance : null;
19export const Event = win.Event;
20export const MouseEvent = win.MouseEvent;
21export const KeyboardEvent = win.KeyboardEvent;
22export const EventTarget = win.EventTarget;
23export const History = win.History;
24export const Location = win.Location;
25export const EventListener = win.EventListener;
26//# sourceMappingURL=browser.js.map
\No newline at end of file