UNPKG

1.73 kBTypeScriptView Raw
1export { supportsHistory } from './vendor/supportsHistory';
2/**
3 * Tells whether current environment supports ErrorEvent objects
4 * {@link supportsErrorEvent}.
5 *
6 * @returns Answer to the given question.
7 */
8export declare function supportsErrorEvent(): boolean;
9/**
10 * Tells whether current environment supports DOMError objects
11 * {@link supportsDOMError}.
12 *
13 * @returns Answer to the given question.
14 */
15export declare function supportsDOMError(): boolean;
16/**
17 * Tells whether current environment supports DOMException objects
18 * {@link supportsDOMException}.
19 *
20 * @returns Answer to the given question.
21 */
22export declare function supportsDOMException(): boolean;
23/**
24 * Tells whether current environment supports Fetch API
25 * {@link supportsFetch}.
26 *
27 * @returns Answer to the given question.
28 */
29export declare function supportsFetch(): boolean;
30/**
31 * isNativeFetch checks if the given function is a native implementation of fetch()
32 */
33export declare function isNativeFetch(func: Function): boolean;
34/**
35 * Tells whether current environment supports Fetch API natively
36 * {@link supportsNativeFetch}.
37 *
38 * @returns true if `window.fetch` is natively implemented, false otherwise
39 */
40export declare function supportsNativeFetch(): boolean;
41/**
42 * Tells whether current environment supports ReportingObserver API
43 * {@link supportsReportingObserver}.
44 *
45 * @returns Answer to the given question.
46 */
47export declare function supportsReportingObserver(): boolean;
48/**
49 * Tells whether current environment supports Referrer Policy API
50 * {@link supportsReferrerPolicy}.
51 *
52 * @returns Answer to the given question.
53 */
54export declare function supportsReferrerPolicy(): boolean;
55//# sourceMappingURL=supports.d.ts.map
\No newline at end of file