UNPKG

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